Commit a92d5f41 authored by zhitomirskiyi's avatar zhitomirskiyi

added the migration to invitation_service and invitation_identifier

parent d595a641
class AddInvitationServiceAndInvitationIdentifierToUser < ActiveRecord::Migration
def self.up
add_column(:users, :invitation_service, :string)
add_column(:users, :invitation_identifier, :string)
execute("UPDATE `users` SET invitation_service='email', invitation_identifier= email WHERE invitation_token IS NOT NULL;")
end
def self.down
remove_column(:users, :invitation_service, :string)
remove_column(:users, :invitation_identifier, :string)
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment