Test Setup Failed
Push — master ( 188b46...525152 )
by Steven
01:27
created

AddDiscardToUsers.change()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
rs 10
1
# frozen_string_literal: true
2
3
# Add soft delete to users table
4
class AddDiscardToUsers < ActiveRecord::Migration[5.1]
5
  def change
6
    add_column :users, :discarded_at, :datetime
7
    add_index :users, :discarded_at
8
  end
9
end
10