5 changed files with 22 additions and 6 deletions
@ -0,0 +1,15 @@ |
|||||||
|
class ChangeUnknownLettingAllocationType < ActiveRecord::Migration[7.0] |
||||||
|
def up |
||||||
|
change_table :case_logs, bulk: true do |t| |
||||||
|
t.remove :letting_allocation_unknown |
||||||
|
t.column :letting_allocation_unknown, :integer |
||||||
|
end |
||||||
|
end |
||||||
|
|
||||||
|
def down |
||||||
|
change_table :case_logs, bulk: true do |t| |
||||||
|
t.remove :letting_allocation_unknown |
||||||
|
t.column :letting_allocation_unknown, :boolean |
||||||
|
end |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue