-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3506 from 18F/fix_remove_x509_dn_uuid
fixed strong_migrations error on remove_column
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class User < ApplicationRecord | ||
self.ignored_columns = %w[x509_dn_uuid] | ||
include NonNullUuid | ||
|
||
devise( | ||
|
4 changes: 3 additions & 1 deletion
4
db/migrate/20191217010300_drop_x509_dn_uuid_column_from_user.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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
class DropX509DnUuidColumnFromUser < ActiveRecord::Migration[5.1] | ||
def change | ||
remove_column :users, :x509_dn_uuid | ||
safety_assured do | ||
remove_column :users, :x509_dn_uuid | ||
end | ||
end | ||
end |