Browse Source
- Reset `created_by` automatically when a form is updated and the owner does not belong to the managing or owning organisationpull/1055/head
7 changed files with 28 additions and 13 deletions
@ -0,0 +1,10 @@
|
||||
class AddUpdatedByToLogs < ActiveRecord::Migration[7.0] |
||||
def change |
||||
change_table :lettings_logs, bulk: true do |t| |
||||
t.belongs_to :updated_by, class_name: "User" |
||||
end |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.belongs_to :updated_by, class_name: "User" |
||||
end |
||||
end |
||||
end |
||||
Loading…
Reference in new issue