diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-21 02:40:48 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-21 02:40:48 +0300 |
commit | d3ff8c1a952b6bee75eac80f4ac61a7b70cb4eb0 (patch) | |
tree | 32f6c427c18d4d654f97917989306433dd0ad5e3 /db/migrate/20150620233230_add_default_otp_required_for_login_value.rb | |
parent | 8304bed105a75b1380b963e5f943de7443105d98 (diff) |
Make default value for otp_required_for_login false instead of null
Diffstat (limited to 'db/migrate/20150620233230_add_default_otp_required_for_login_value.rb')
-rw-r--r-- | db/migrate/20150620233230_add_default_otp_required_for_login_value.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150620233230_add_default_otp_required_for_login_value.rb b/db/migrate/20150620233230_add_default_otp_required_for_login_value.rb new file mode 100644 index 00000000000..c209fa4e80f --- /dev/null +++ b/db/migrate/20150620233230_add_default_otp_required_for_login_value.rb @@ -0,0 +1,9 @@ +class AddDefaultOtpRequiredForLoginValue < ActiveRecord::Migration + def up + change_column :users, :otp_required_for_login, :boolean, default: false, null: false + end + + def down + change_column :users, :otp_required_for_login, :boolean, default: nil + end +end |