Class: CreateBannerGroups
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateBannerGroups
- Defined in:
- lib/generators/dummy/templates/migrations/create_banner_groups.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/dummy/templates/migrations/create_banner_groups.rb', line 2 def change create_table :banner_groups do |t| t.integer :banner_page_id t.integer :item_position t.string :title t.string :image_uid t.(null: false) end end |