mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 13:09:08 +01:00
10 lines
269 B
Ruby
10 lines
269 B
Ruby
|
class AddSoftDeletes < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
%i[answers appendables comments questions users].each do |table|
|
||
|
say "Migrating #{table}"
|
||
|
add_column table, :discarded_at, :datetime
|
||
|
add_index table, :discarded_at
|
||
|
end
|
||
|
end
|
||
|
end
|