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
305 B
10 lines
305 B
9 months ago
|
class AddAssignedTo < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
add_column :lettings_logs, :assigned_to_id, :integer
|
||
|
add_column :sales_logs, :assigned_to_id, :integer
|
||
|
|
||
|
LettingsLog.update_all("assigned_to_id=created_by_id")
|
||
|
SalesLog.update_all("assigned_to_id=created_by_id")
|
||
|
end
|
||
|
end
|