AddDeletedColumn.change()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 6
rs 10
c 1
b 0
f 0
1
# frozen_string_literal: true
2
3
class AddDeletedColumn < ActiveRecord::Migration[5.2]
4
  def change
5
    add_column :users, :deleted, :boolean, null: false, default: false
6
    add_index :users, :deleted
7
    add_column :rooms, :deleted, :boolean, null: false, default: false
8
    add_index :rooms, :deleted
9
  end
10
end
11