Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
981 B

class ChangeRelatToString < ActiveRecord::Migration[7.0]
def up
change_table :case_logs, bulk: true do |t|
t.remove :relat2
t.column :relat2, :string
t.remove :relat3
t.column :relat3, :string
t.remove :relat4
t.column :relat4, :string
t.remove :relat5
t.column :relat5, :string
t.remove :relat6
t.column :relat6, :string
t.remove :relat7
t.column :relat7, :string
t.remove :relat8
t.column :relat8, :string
end
end
def down
change_table :case_logs, bulk: true do |t|
t.remove :relat2
t.column :relat2, :integer
t.remove :relat3
t.column :relat3, :integer
t.remove :relat4
t.column :relat4, :integer
t.remove :relat5
t.column :relat5, :integer
t.remove :relat6
t.column :relat6, :integer
t.remove :relat7
t.column :relat7, :integer
t.remove :relat8
t.column :relat8, :integer
end
end
end