FIX: Broken DB issue following a reverted migration (#13426)
This commit is contained in:
parent
36162cf396
commit
04a3cd3814
|
@ -0,0 +1,13 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AddAutomaticColumnDirectoryColumns < ActiveRecord::Migration[6.1]
|
||||||
|
def up
|
||||||
|
if !ActiveRecord::Base.connection.column_exists?(:directory_columns, :automatic)
|
||||||
|
add_column :directory_columns, :automatic, :integer, default: true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue