mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
14 lines
352 B
Ruby
14 lines
352 B
Ruby
|
# 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
|