Class: CreateIllustrations
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateIllustrations
- Defined in:
- lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_illustrations.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_illustrations.rb', line 2 def change create_table :illustrations do |t| t.string :name t.string :image t. end end |