osem-fcy/db/migrate/20130202130923_create_table_supporter_registrations.rb

20 lines
442 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateTableSupporterRegistrations < ActiveRecord::Migration
def up
create_table :supporter_registrations do |t|
t.references :registration
t.references :supporter_level
t.references :conference
t.string :name
t.string :email
t.string :code
2014-07-21 14:49:05 +02:00
t.boolean :code_is_valid, default: false
end
end
def down
drop_table :supporter_registrations
end
end