class CreateDownloads

Public Instance Methods

down() click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_downloads.rb, line 11
def down
  drop_table :downnloads
  Download.drop_translation_table!
end
up() click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_downloads.rb, line 2
def up
  create_table :downloads do |t|
    t.string :name
    t.string :thing
    t.timestamps
  end
  Download.create_translation_table!({ name: :string })
end