Create migration file
This commit is contained in:
parent
8b2f2b538e
commit
a1ce39643b
1 changed files with 12 additions and 0 deletions
12
db/migrate/20190817094930_create_booth_types.rb
Normal file
12
db/migrate/20190817094930_create_booth_types.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue