2012-07-01 20:31:31 +02:00
|
|
|
class CreateInvitations < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :invitations do |t|
|
|
|
|
t.integer :user_id
|
|
|
|
t.string :email
|
|
|
|
t.string :code
|
2013-12-30 23:29:00 +01:00
|
|
|
t.timestamps :null => false
|
2012-07-01 20:31:31 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
add_column :users, :invited_by_user_id, :integer
|
|
|
|
end
|
|
|
|
end
|