20171125031751_add_invite_id_to_users.rb 241 B

1234567
  1. # frozen_string_literal: true
  2. class AddInviteIdToUsers < ActiveRecord::Migration[5.2]
  3. def change
  4. safety_assured { add_reference :users, :invite, null: true, default: nil, foreign_key: { on_delete: :nullify }, index: false }
  5. end
  6. end