Browse Source
* create migrations to add creation method fields to both log types * add enum definition to logs for creation method * upadte csv export services to retrieve creation method values direct from the log, remove methods previously used from the log model * run migrations to update schema * ensure that logs created via bulk upload have this set correctly when createdpull/1719/head
10 changed files with 38 additions and 16 deletions
@ -0,0 +1,5 @@
|
||||
class AddCreationMethodToLettingsLogs < ActiveRecord::Migration[7.0] |
||||
def change |
||||
add_column :lettings_logs, :creation_method, :integer, default: 1 |
||||
end |
||||
end |
||||
@ -0,0 +1,5 @@
|
||||
class AddCreationMethodToSalesLogs < ActiveRecord::Migration[7.0] |
||||
def change |
||||
add_column :sales_logs, :creation_method, :integer, default: 1 |
||||
end |
||||
end |
||||
Loading…
Reference in new issue