Create migration file

This commit is contained in:
Rishabh Singh 2019-08-17 18:09:00 +05:30
parent 8b2f2b538e
commit a1ce39643b

View file

@ -0,0 +1,12 @@
class CreateBoothTypes < ActiveRecord::Migration[5.2]
def change
create_table :booth_types do |t|
t.references :program
t.string :title, null: false
t.string :description
t.timestamps
end
add_reference :booths, :booth_type, index: true
end
end