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

AddDiscardToUsers   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 4 1
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