diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-10 14:41:21 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 12:06:42 +0200 |
commit | 1e97864958b5ee7cb92a6d45ceab6b6e476c5e7e (patch) | |
tree | f1e1cbf86eabc5ba42f173741ef2ab8b3d029d09 /db/migrate | |
parent | e6569defe61f114beb051a1ebf8186f03eed1f5c (diff) | |
download | gitlab-ce-1e97864958b5ee7cb92a6d45ceab6b6e476c5e7e.tar.gz |
Add invite data to member.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150406133311_add_invite_data_to_member.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20150406133311_add_invite_data_to_member.rb b/db/migrate/20150406133311_add_invite_data_to_member.rb new file mode 100644 index 00000000000..3452fd45c4f --- /dev/null +++ b/db/migrate/20150406133311_add_invite_data_to_member.rb @@ -0,0 +1,12 @@ +class AddInviteDataToMember < ActiveRecord::Migration + def change + add_column :members, :created_by_id, :integer + add_column :members, :invite_email, :string + add_column :members, :invite_token, :string + add_column :members, :invite_accepted_at, :datetime + + change_column :members, :user_id, :integer, null: true + + add_index :members, :invite_token, unique: true + end +end |