baarkerlounger
3 years ago
2 changed files with 7 additions and 4 deletions
@ -1,6 +1,9 @@
|
||||
class UpdatePropertyNumberOfTimesReletType < ActiveRecord::Migration[6.1] |
||||
def change |
||||
remove_column :case_logs, :property_number_of_times_relet, :string |
||||
add_column :case_logs, :property_number_of_times_relet, :integer |
||||
def up |
||||
change_column :case_logs, :property_number_of_times_relet, "integer USING CAST(property_number_of_times_relet AS integer)" |
||||
end |
||||
|
||||
def down |
||||
change_column :case_logs, :property_number_of_times_relet, :string |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue