ballalama3_app/db/migrate/20140703135629_create_big_menu_items.rb
Nicolas Bally bc774b8159 initial
2016-12-01 10:54:16 +01:00

16 lines
355 B
Ruby

class CreateBigMenuItems < ActiveRecord::Migration
def change
create_table :big_menu_items do |t|
t.references :big_menu
t.string :name
t.integer :position
t.integer :type_id, :default => 1
t.integer :cible_id
t.string :cible_type
t.timestamps
end
add_index :big_menu_items, :big_menu_id
end
end