Fix Rails/ThreeStateBooleanColumn cop (#33269)
This commit is contained in:
parent
bcb3b627b9
commit
d6241f6751
21 changed files with 27 additions and 18 deletions
|
|
@ -4,7 +4,7 @@ class AddTrendableToAccounts < ActiveRecord::Migration[6.1]
|
|||
def change
|
||||
safety_assured do
|
||||
change_table(:accounts, bulk: true) do |t|
|
||||
t.column :trendable, :boolean
|
||||
t.column :trendable, :boolean # rubocop:disable Rails/ThreeStateBooleanColumn
|
||||
t.column :reviewed_at, :datetime
|
||||
t.column :requested_review_at, :datetime
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue