-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13422f5
commit c1f9147
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
db/migrate/20250116123350_remove_access_requests_if_table_exists.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters