Browse Source
* feat: remove sales log managing_organisation_id * feat: move shared managing org behaviour from general log to lettings log, update tests * refator: linting * revert change to create * feat: tech review comments * db:update * tests: respond to comment * feat: revert change to avoid nil issue * test: update * feat: add validation and update db * feat: revert last commit * db:update * refactor: use safe navigation and lettings? * refactor: move safe navigator and add shared org_params to logpull/1220/head
natdeanlewissoftwire
2 years ago
committed by
GitHub
21 changed files with 109 additions and 84 deletions
@ -0,0 +1,13 @@
|
||||
class RemoveManagingOrganisationIdFromSalesLogs < ActiveRecord::Migration[7.0] |
||||
def up |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.remove :managing_organisation_id |
||||
end |
||||
end |
||||
|
||||
def down |
||||
change_table :sales_logs, bulk: true do |t| |
||||
t.column :managing_organisation_id, :bigint |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue