1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Add nulls to migration generator

This commit is contained in:
Alexander Zubkov 2013-09-02 15:00:12 +04:00
parent b9112d4308
commit 095572b6fd

View file

@ -50,7 +50,7 @@ module ActiveRecord
t.datetime :remember_created_at t.datetime :remember_created_at
## Trackable ## Trackable
t.integer :sign_in_count, :default => 0 t.integer :sign_in_count, :default => 0, :null => false
t.datetime :current_sign_in_at t.datetime :current_sign_in_at
t.datetime :last_sign_in_at t.datetime :last_sign_in_at
t.string :current_sign_in_ip t.string :current_sign_in_ip
@ -63,7 +63,7 @@ module ActiveRecord
# t.string :unconfirmed_email # Only if using reconfirmable # t.string :unconfirmed_email # Only if using reconfirmable
## Lockable ## Lockable
# t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts # t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
# t.string :unlock_token # Only if unlock strategy is :email or :both # t.string :unlock_token # Only if unlock strategy is :email or :both
# t.datetime :locked_at # t.datetime :locked_at
RUBY RUBY