Skip to content

Commit

Permalink
fixed strong_migrations error on remove_column
Browse files Browse the repository at this point in the history
  • Loading branch information
achapm committed Jan 2, 2020
1 parent e549775 commit d4bb7a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/user.rb
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(
Expand Down
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

0 comments on commit d4bb7a9

Please sign in to comment.