12 lines
283 B
12 lines
283 B
3 years ago
|
class RemoveDiscardedAtFromCaseLogs < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
remove_index :case_logs, :discarded_at
|
||
|
remove_column :case_logs, :discarded_at
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_column :case_logs, :discarded_at, :datetime
|
||
|
add_index :case_logs, :discarded_at
|
||
|
end
|
||
|
end
|