mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
8 lines
299 B
Ruby
8 lines
299 B
Ruby
class AddDeletedAtToUsers < ActiveRecord::Migration[8.0]
|
|
disable_ddl_transaction!
|
|
|
|
def change
|
|
add_column :users, :deleted_at, :datetime unless column_exists?(:users, :deleted_at)
|
|
add_index :users, :deleted_at, algorithm: :concurrently unless index_exists?(:users, :deleted_at)
|
|
end
|
|
end
|