aboutsummaryrefslogtreecommitdiff
path: root/site/app
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-09 13:42:46 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-20 17:03:03 +0200
commit971d1d4a91fdb569f1f0c70bc85f8b613df58521 (patch)
treeeee330030281b7bf4560d2d61d6e6caeb675ab8b /site/app
parentCookie steps (diff)
downloadcouncil-webapp-971d1d4a91fdb569f1f0c70bc85f8b613df58521.tar.gz
council-webapp-971d1d4a91fdb569f1f0c70bc85f8b613df58521.tar.bz2
council-webapp-971d1d4a91fdb569f1f0c70bc85f8b613df58521.zip
Add irc_nick field to User model
Diffstat (limited to 'site/app')
-rw-r--r--site/app/models/user.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/site/app/models/user.rb b/site/app/models/user.rb
index fc9bc9f..20b2c4c 100644
--- a/site/app/models/user.rb
+++ b/site/app/models/user.rb
@@ -4,6 +4,7 @@ class User < ActiveRecord::Base
fields do
name :string, :required, :unique
+ irc_nick :string, :required, :unique
email_address :email_address, :login => true
administrator :boolean, :default => false
timestamps
@@ -16,7 +17,7 @@ class User < ActiveRecord::Base
state :active, :default => true
create :signup, :available_to => "Guest",
- :params => [:name, :email_address, :password, :password_confirmation],
+ :params => [:name, :email_address, :irc_nick, :password, :password_confirmation],
:become => :active
transition :request_password_reset, { :active => :active }, :new_key => true do