2 changed files with 9 additions and 5 deletions
@ -1,6 +1,8 @@ |
|||||||
class AddAddressInputFieldsToLettingsLog < ActiveRecord::Migration[7.0] |
class AddAddressInputFieldsToLettingsLog < ActiveRecord::Migration[7.0] |
||||||
def change |
def change |
||||||
add_column :lettings_logs, :address_line1_input, :string |
change_table :lettings_logs, bulk: true do |t| |
||||||
add_column :lettings_logs, :postcode_full_input, :string |
t.string :address_line1_input |
||||||
|
t.string :postcode_full_input |
||||||
|
end |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
@ -1,7 +1,9 @@ |
|||||||
class AddAddressLookupFieldsToSalesLogs < ActiveRecord::Migration[7.0] |
class AddAddressLookupFieldsToSalesLogs < ActiveRecord::Migration[7.0] |
||||||
def change |
def change |
||||||
add_column :sales_logs, :address_selection, :integer |
change_table :sales_logs, bulk: true do |t| |
||||||
add_column :sales_logs, :address_line1_input, :string |
t.integer :address_selection |
||||||
add_column :sales_logs, :postcode_full_input, :string |
t.string :address_line1_input |
||||||
|
t.string :postcode_full_input |
||||||
|
end |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue