Skip to content

Commit

Permalink
Remove access_request table
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitemaeric committed Jan 16, 2025
1 parent 13422f5 commit c1f9147
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

class RemoveAccessRequestsIfTableExists < ActiveRecord::Migration[8.0]
def change
drop_table :access_request, if_exists: true do |t|
t.text 'email_address'
t.text 'first_name'
t.text 'last_name'
t.text 'organisation'
t.text 'reason'
t.datetime 'request_date_utc', precision: nil, null: false
t.integer 'requester_id'
t.integer 'status', null: false
t.text 'requester_email'
t.datetime 'discarded_at', precision: nil
t.index ['discarded_at'], name: 'index_access_request_on_discarded_at'
t.index ['requester_id'], name: 'IX_access_request_requester_id'
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[8.0].define(version: 2024_12_19_142038) do
ActiveRecord::Schema[8.0].define(version: 2025_01_16_123350) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "btree_gist"
Expand Down

0 comments on commit c1f9147

Please sign in to comment.