Sha256: 654a86c211fd0c0e0ae5c4dc7d8f0d83ff3d96971dee32aa47ec08316e557a5c
Contents?: true
Size: 906 Bytes
Versions: 9
Compression:
Stored size: 906 Bytes
Contents
# frozen_string_literal: true class AddDeviseInvitableToEacUsersSupportUsers < ActiveRecord::Migration def up change_table :eac_users_support_users do |t| t.string :invitation_token t.datetime :invitation_created_at t.datetime :invitation_sent_at t.datetime :invitation_accepted_at t.integer :invitation_limit t.references :invited_by, polymorphic: true t.integer :invitations_count, default: 0 t.index :invitations_count t.index :invitation_token, unique: true # for invitable t.index :invited_by_id end end def down change_table :eac_users_support_users do |t| t.remove_references :invited_by, polymorphic: true t.remove :invitations_count, :invitation_limit, :invitation_sent_at, :invitation_accepted_at, :invitation_token, :invitation_created_at end end end
Version data entries
9 entries across 9 versions & 1 rubygems