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;")
def self.down
remove_column(:users, :invitation_service, :string)
remove_column(:users, :invitation_identifier, :string)
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