Chatwoot/db/migrate/20221102082737_change_macros_created_by_to_null.rb

10 lines
311 B
Ruby
Raw Normal View History

class ChangeMacrosCreatedByToNull < ActiveRecord::Migration[6.1]
def change
change_column_null :macros, :created_by_id, true
change_column_null :macros, :updated_by_id, true
remove_index :macros, :created_by_id, if_exists: true
remove_index :macros, :updated_by_id, if_exists: true
end
end