mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 00:46:03 +01:00
9 lines
269 B
Ruby
9 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
|