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