class InitialSchema

Public Instance Methods

change() click to toggle source
# File lib/miteru/database.rb, line 6
def change
  create_table :records, if_not_exists: true do |t|
    t.string :hash, null: false, index: { unique: true }
    t.string :hostname, null: false
    t.json :headers, null: false
    t.text :filename, null: false
    t.string :downloaded_as, null: false
    t.integer :filesize, null: false
    t.string :mime_type, null: false
    t.text :url, null: false

    t.timestamps
  end
end