Skip to content

Commit

Permalink
Update 20231009160910_add_gbl_admin.rb
Browse files Browse the repository at this point in the history
Remove invitation cols from migration.
  • Loading branch information
ewlarson committed Oct 10, 2023
1 parent 89da628 commit bfea9a5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions db/migrate/20231009160910_add_gbl_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,19 +368,19 @@ def change
change_column :uri_transitions, :solr_document_uri_id, :bigint

# users
add_column :users, :invitation_token, :string
add_column :users, :invitation_created_at, :datetime
add_column :users, :invitation_sent_at, :datetime
add_column :users, :invitation_accepted_at, :datetime
add_column :users, :invitation_limit, :integer
add_column :users, :invited_by_type, :string
add_column :users, :invited_by_id, :bigint
add_column :users, :invitations_count, :integer, default: 0
add_column :users, :admin, :boolean, default: false, null: false
add_index :users, :invitation_token, unique: true
add_index :users, :invitations_count
add_index :users, :invited_by_id
add_index :users, [:invited_by_type, :invited_by_id]
# add_column :users, :invitation_token, :string
# add_column :users, :invitation_created_at, :datetime
# add_column :users, :invitation_sent_at, :datetime
# add_column :users, :invitation_accepted_at, :datetime
# add_column :users, :invitation_limit, :integer
# add_column :users, :invited_by_type, :string
# add_column :users, :invited_by_id, :bigint
# add_column :users, :invitations_count, :integer, default: 0
# add_column :users, :admin, :boolean, default: false, null: false
# add_index :users, :invitation_token, unique: true
# add_index :users, :invitations_count
# add_index :users, :invited_by_id
# add_index :users, [:invited_by_type, :invited_by_id]

create_table "versions", force: :cascade do |t|
t.string "item_type", null: false
Expand Down

0 comments on commit bfea9a5

Please sign in to comment.