Commit 7b5fd145157e1eae18d2721d75330404acc92963

Authored by Saito
1 parent f294b8d4

annotate models

app/models/issue.rb
... ... @@ -19,10 +19,6 @@ class Issue < ActiveRecord::Base
19 19 :presence => true,
20 20 :length => { :within => 0..255 }
21 21  
22   - #validates :content,
23   - #:presence => true,
24   - #:length => { :within => 0..2000 }
25   -
26 22 scope :critical, where(:critical => true)
27 23 scope :non_critical, where(:critical => false)
28 24  
... ... @@ -46,7 +42,6 @@ end
46 42 #
47 43 # id :integer not null, primary key
48 44 # title :string(255)
49   -# content :text
50 45 # assignee_id :integer
51 46 # author_id :integer
52 47 # project_id :integer
... ...
app/models/user.rb
... ... @@ -64,9 +64,10 @@ end
64 64 # updated_at :datetime
65 65 # name :string(255)
66 66 # admin :boolean default(FALSE), not null
67   -# projects_limit :integer
68   -# skype :string
69   -# linkedin :string
70   -# twitter :string
  67 +# projects_limit :integer default(10)
  68 +# skype :string(255) default(""), not null
  69 +# linkedin :string(255) default(""), not null
  70 +# twitter :string(255) default(""), not null
  71 +# authentication_token :string(255)
71 72 #
72 73  
... ...
spec/models/issue_spec.rb
... ... @@ -31,7 +31,6 @@ end
31 31 #
32 32 # id :integer not null, primary key
33 33 # title :string(255)
34   -# content :text
35 34 # assignee_id :integer
36 35 # author_id :integer
37 36 # project_id :integer
... ...
spec/models/user_spec.rb
... ... @@ -58,9 +58,10 @@ end
58 58 # updated_at :datetime
59 59 # name :string(255)
60 60 # admin :boolean default(FALSE), not null
61   -# projects_limit :integer
62   -# skype :string
63   -# linkedin :string
64   -# twitter :string
  61 +# projects_limit :integer default(10)
  62 +# skype :string(255) default(""), not null
  63 +# linkedin :string(255) default(""), not null
  64 +# twitter :string(255) default(""), not null
  65 +# authentication_token :string(255)
65 66 #
66 67  
... ...