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