Make open source
This commit is contained in:
15
db/migrate/20180325090310_add_guest_info.rb
Normal file
15
db/migrate/20180325090310_add_guest_info.rb
Normal file
@ -0,0 +1,15 @@
|
||||
class AddGuestInfo < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
enable_extension('citext')
|
||||
|
||||
change_table :guests do |t|
|
||||
t.change :email, :citext, null: false
|
||||
t.index :email, unique: true
|
||||
|
||||
t.string :token, null: false
|
||||
t.boolean :attending
|
||||
t.integer :diet
|
||||
t.string :other_diet
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user