diff --git a/app/models/issue.rb b/app/models/issue.rb index ac921d7f6750b95d60a18143d598b0c5af1e8561..2a880037091e6302d73df82ec27e69ec4a848b85 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -19,10 +19,6 @@ class Issue < ActiveRecord::Base :presence => true, :length => { :within => 0..255 } - #validates :content, - #:presence => true, - #:length => { :within => 0..2000 } - scope :critical, where(:critical => true) scope :non_critical, where(:critical => false) @@ -46,7 +42,6 @@ end # # id :integer not null, primary key # title :string(255) -# content :text # assignee_id :integer # author_id :integer # project_id :integer diff --git a/app/models/user.rb b/app/models/user.rb index 712c7aecb26bbf7ba33894924eae191dde97af75..8967859d089c4284f0bdbd3e614fea4d3856b99d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -64,9 +64,10 @@ end # updated_at :datetime # name :string(255) # admin :boolean default(FALSE), not null -# projects_limit :integer -# skype :string -# linkedin :string -# twitter :string +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) # diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index da2d88f67f8ec45b195eed0085cb4b34e2a4dada..ac6786333d1379b816737c4120e6f3c1ed75dd3a 100644 --- a/spec/models/issue_spec.rb +++ b/spec/models/issue_spec.rb @@ -31,7 +31,6 @@ end # # id :integer not null, primary key # title :string(255) -# content :text # assignee_id :integer # author_id :integer # project_id :integer diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 226365775da43920375476f46f3959ff72ae9009..4e1f130887e627b75b27f7240c716562543b58f9 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -58,9 +58,10 @@ end # updated_at :datetime # name :string(255) # admin :boolean default(FALSE), not null -# projects_limit :integer -# skype :string -# linkedin :string -# twitter :string +# projects_limit :integer default(10) +# skype :string(255) default(""), not null +# linkedin :string(255) default(""), not null +# twitter :string(255) default(""), not null +# authentication_token :string(255) #