mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 05:25:33 +08:00
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…
x
Reference in New Issue
Block a user