Chatwoot/db/migrate/20221102082737_change_macros_created_by_to_null.rb
Tejaswini Chile 48373628a1
fix: Macros authorizations (#5779)
Macros policy update.

ref: #5730
2022-11-07 17:46:00 -08:00

9 lines
311 B
Ruby

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