Browse Source

Fix column change migration

pull/51/head
baarkerlounger 3 years ago
parent
commit
df95c4f1c6
  1. 3
      db/migrate/20211015090040_update_property_number_of_times_relet_type.rb
  2. 2
      db/schema.rb

3
db/migrate/20211015090040_update_property_number_of_times_relet_type.rb

@ -1,5 +1,6 @@
class UpdatePropertyNumberOfTimesReletType < ActiveRecord::Migration[6.1]
def change
change_column :case_logs, :property_number_of_times_relet, :integer
remove_column :case_logs, :property_number_of_times_relet, :string
add_column :case_logs, :property_number_of_times_relet, :integer
end
end

2
db/schema.rb

@ -130,8 +130,8 @@ ActiveRecord::Schema.define(version: 2021_10_15_090040) do
t.boolean "reasonable_preference_reason_medical_grounds"
t.boolean "reasonable_preference_reason_avoid_hardship"
t.boolean "reasonable_preference_reason_do_not_know"
t.integer "property_number_of_times_relet"
t.datetime "discarded_at"
t.integer "property_number_of_times_relet"
t.index ["discarded_at"], name: "index_case_logs_on_discarded_at"
end

Loading…
Cancel
Save