Browse Source

Rubocop fixes

pull/56/head
baarkerlounger 3 years ago
parent
commit
1fce70bd3c
  1. 9
      db/migrate/20211015090040_update_property_number_of_times_relet_type.rb

9
db/migrate/20211015090040_update_property_number_of_times_relet_type.rb

@ -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…
Cancel
Save