class CreateHeaders
Public Instance Methods
down()
click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_headers.rb, line 11 def down drop_table :headers Header.drop_translation_table! end
up()
click to toggle source
# File lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_headers.rb, line 2 def up create_table :headers do |t| t.string :name t.string :photo t.timestamps end Header.create_translation_table!({ name: :string }) end