greenlight-2.14.4/db/migrate/20190828153347_add_deleted_column.rb
2023-02-13 23:17:00 +08:00

11 lines
312 B
Ruby

# frozen_string_literal: true
class AddDeletedColumn < ActiveRecord::Migration[5.2]
def change
add_column :users, :deleted, :boolean, null: false, default: false
add_index :users, :deleted
add_column :rooms, :deleted, :boolean, null: false, default: false
add_index :rooms, :deleted
end
end