Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
301 B

class AddAssignedTo < ActiveRecord::Migration[7.0]
def change
add_column :lettings_logs, :assigned_to_id, :integer
add_column :sales_logs, :assigned_to_id, :integer
9 months ago
LettingsLog.update_all("assigned_to_id=created_by_id")
SalesLog.update_all("assigned_to_id=created_by_id")
end
end