diff options
author | francis <francis> | 2008-01-24 15:53:14 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-24 15:53:14 +0000 |
commit | 4cee79a9c722f5a9058f4d0e4390847f05aa2c3e (patch) | |
tree | 56eae11709af3711399b66593f15523ab2c4359a /app/models/user.rb | |
parent | 1ce9966115a737712d7b7c040e0d47a695479202 (diff) |
Add NOT NULL constraints into the database everywhere
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index cc2ca88ab..31d6b43a3 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,16 +1,16 @@ # == Schema Information -# Schema version: 25 +# Schema version: 26 # # Table name: users # # id :integer not null, primary key -# email :string(255) default("ook") -# name :string(255) -# hashed_password :string(255) -# salt :string(255) -# created_at :datetime -# updated_at :datetime -# email_confirmed :boolean default(false) +# email :string(255) not null +# name :string(255) not null +# hashed_password :string(255) not null +# salt :string(255) not null +# created_at :datetime not null +# updated_at :datetime not null +# email_confirmed :boolean default(false), not null # # models/user.rb: @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user.rb,v 1.21 2008-01-23 01:59:23 francis Exp $ +# $Id: user.rb,v 1.22 2008-01-24 15:53:15 francis Exp $ require 'digest/sha1' |