2013-02-02 16:43:47 +01:00
|
|
|
class CreateTableSupporterRegistrations < ActiveRecord::Migration
|
|
|
|
|
def up
|
|
|
|
|
create_table :supporter_registrations do |t|
|
|
|
|
|
t.references :registration
|
|
|
|
|
t.references :supporter_level
|
2013-02-03 18:12:44 +01:00
|
|
|
t.references :conference
|
|
|
|
|
t.string :name
|
2013-02-02 16:43:47 +01:00
|
|
|
t.string :email
|
|
|
|
|
t.string :code
|
2014-07-21 14:49:05 +02:00
|
|
|
t.boolean :code_is_valid, default: false
|
2013-02-02 16:43:47 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def down
|
|
|
|
|
drop_table :supporter_registrations
|
|
|
|
|
end
|
|
|
|
|
end
|