allow to login with email instead of nick as well + tests
This commit is contained in:
parent
fa99a0a852
commit
a77c3b59b1
5 changed files with 32 additions and 6 deletions
9
db/migrate/20130920201529_allow_missing_nick.rb
Normal file
9
db/migrate/20130920201529_allow_missing_nick.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class AllowMissingNick < ActiveRecord::Migration
|
||||
def self.up
|
||||
change_column :users, :nick, :string, :default => nil, :null => true
|
||||
end
|
||||
|
||||
def self.down
|
||||
change_column :users, :nick, :string, :default => "", :null => false
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue