Commit 3e7d2f5c authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

adapt soft deletion for all models

parent c00918ad
class AddDeletedAtToAllModels < ActiveRecord::Migration[5.1]
def change
add_column :clients, :deleted_at, :datetime
add_index :clients, :deleted_at
add_column :language_skills, :deleted_at, :datetime
add_index :language_skills, :deleted_at
add_column :profiles, :deleted_at, :datetime
add_index :profiles, :deleted_at
add_column :relatives, :deleted_at, :datetime
add_index :relatives, :deleted_at
add_column :schedules, :deleted_at, :datetime
add_index :schedules, :deleted_at
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment