Skip to content

Commit

Permalink
Tabs?! Argh
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjefferies committed Dec 8, 2017
1 parent 2c573ed commit 8d2f2c2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ class AddPinfirmableColumnsToResource < ActiveRecord::Migration[5.0]
def change
model = (ENV["MODEL"] || "user").downcase.pluralize.to_sym
unless column_exists?(model, :pinfirmable_pin)
add_column model, :pinfirmable_pin, :string
add_column model, :pinfirmable_tries, :integer, default: 0
add_column model, :pinfirmable_lockout, :datetime, default: nil
end
add_column model, :pinfirmable_pin, :string
add_column model, :pinfirmable_tries, :integer, default: 0
add_column model, :pinfirmable_lockout, :datetime, default: nil
end
end
end

0 comments on commit 8d2f2c2

Please sign in to comment.