Updated

db/migrate / 20170712070139_add_locking_columns_to_petitions.rb

A
8 lines of codes
1 methods
3.0 complexity/method
1 churn
3.0 complexity
0 duplications
class AddLockingColumnsToPetitions < ActiveRecord::Migration
  1. AddLockingColumnsToPetitions has no descriptive comment
def change add_column :petitions, :locked_at, :datetime add_column :petitions, :locked_by_id, :integer add_index :petitions, :locked_by_id end end