Skip to content

Commit 337fc75

Browse files
committed
Re-annotated the models
1 parent f956d9a commit 337fc75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+93
-149
lines changed

app/models/api_access.rb

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def can_award?(badge_name)
1313
end
1414

1515
# == Schema Information
16-
# Schema version: 20140918031936
1716
#
1817
# Table name: api_accesses
1918
#

app/models/available_coupon.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class AvailableCoupon < ActiveRecord::Base
22
end
33

44
# == Schema Information
5-
# Schema version: 20140918031936
65
#
76
# Table name: available_coupons
87
#

app/models/badge.rb

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def event_type
9898
end
9999

100100
# == Schema Information
101-
# Schema version: 20140918031936
102101
#
103102
# Table name: badges
104103
#

app/models/comment.rb

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def analyze_spam
138138
end
139139

140140
# == Schema Information
141-
# Schema version: 20140918031936
142141
#
143142
# Table name: comments
144143
#

app/models/country.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class Country < ActiveRecord::Base
22
end
33

44
# == Schema Information
5-
# Schema version: 20140918031936
65
#
76
# Table name: countries
87
#

app/models/endorsement.rb

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def event_type
2323
end
2424

2525
# == Schema Information
26-
# Schema version: 20140918031936
2726
#
2827
# Table name: endorsements
2928
#

app/models/fact.rb

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def user
6464
end
6565

6666
# == Schema Information
67-
# Schema version: 20140918031936
6867
#
6968
# Table name: facts
7069
#

app/models/follow.rb

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def event_type
3636
end
3737

3838
# == Schema Information
39-
# Schema version: 20140918031936
4039
#
4140
# Table name: follows
4241
#

app/models/github_assignment.rb

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def self.for_github_username(github_username)
1818
end
1919

2020
# == Schema Information
21-
# Schema version: 20140918031936
2221
#
2322
# Table name: github_assignments
2423
#

app/models/highlight.rb

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def add_to_timeline
2222
end
2323

2424
# == Schema Information
25-
# Schema version: 20140918031936
2625
#
2726
# Table name: highlights
2827
#

app/models/invitation.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class Invitation < ActiveRecord::Base
22
end
33

44
# == Schema Information
5-
# Schema version: 20140918031936
65
#
76
# Table name: invitations
87
#

app/models/like.rb

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def liked_callback
1616
end
1717

1818
# == Schema Information
19-
# Schema version: 20140918031936
2019
#
2120
# Table name: likes
2221
#

app/models/network.rb

-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def assign_members
234234
end
235235

236236
# == Schema Information
237-
# Schema version: 20140918031936
238237
#
239238
# Table name: networks
240239
#

app/models/network_expert.rb

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class NetworkExpert < ActiveRecord::Base
88
end
99

1010
# == Schema Information
11-
# Schema version: 20140918031936
1211
#
1312
# Table name: network_experts
1413
#

app/models/opportunity.rb

-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ def remove_from_index
293293
end
294294

295295
# == Schema Information
296-
# Schema version: 20140918031936
297296
#
298297
# Table name: opportunities
299298
#

app/models/pg_team.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ class PgTeam < ActiveRecord::Base
4141
# updated_at :datetime not null
4242
# website :string(255)
4343
# about :text
44-
# total :integer default(0)
44+
# total :decimal(40, 30) default(0.0)
4545
# size :integer default(0)
46-
# mean :integer default(0)
47-
# median :integer default(0)
48-
# score :integer default(0)
46+
# mean :decimal(40, 30) default(0.0)
47+
# median :decimal(40, 30) default(0.0)
48+
# score :decimal(40, 30) default(0.0)
4949
# twitter :string(255)
5050
# facebook :string(255)
5151
# slug :string(255)

app/models/picture.rb

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Picture < ActiveRecord::Base
66
end
77

88
# == Schema Information
9-
# Schema version: 20140918031936
109
#
1110
# Table name: pictures
1211
#

app/models/plan.rb

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def generate_public_id
107107
end
108108

109109
# == Schema Information
110-
# Schema version: 20140918031936
111110
#
112111
# Table name: plans
113112
#

app/models/protip.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,6 @@ def analyze_spam
980980
end
981981

982982
# == Schema Information
983-
# Schema version: 20140918031936
984983
#
985984
# Table name: protips
986985
#
@@ -1000,4 +999,5 @@ def analyze_spam
1000999
# boost_factor :float default(1.0)
10011000
# inappropriate :integer default(0)
10021001
# likes_count :integer default(0)
1002+
# slug :string(255)
10031003
#

app/models/protip_link.rb

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def determine_link_kind
3131
end
3232

3333
# == Schema Information
34-
# Schema version: 20140918031936
3534
#
3635
# Table name: protip_links
3736
#

app/models/seized_opportunity.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class SeizedOpportunity < ActiveRecord::Base
22
end
33

44
# == Schema Information
5-
# Schema version: 20140918031936
65
#
76
# Table name: seized_opportunities
87
#

app/models/sent_mail.rb

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class SentMail < ActiveRecord::Base
66
end
77

88
# == Schema Information
9-
# Schema version: 20140918031936
109
#
1110
# Table name: sent_mails
1211
#

app/models/skill.rb

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def scrub_name
160160
end
161161

162162
# == Schema Information
163-
# Schema version: 20140918031936
164163
#
165164
# Table name: skills
166165
#

app/models/spam_report.rb

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ class SpamReport < ActiveRecord::Base
33
end
44

55
# == Schema Information
6-
# Schema version: 20140918031936
76
#
87
# Table name: spam_reports
98
#

app/models/tag.rb

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def unsubscribe(user)
3939
end
4040

4141
# == Schema Information
42-
# Schema version: 20140918031936
4342
#
4443
# Table name: tags
4544
#

app/models/tagging.rb

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ class Tagging < ActiveRecord::Base
33
end
44

55
# == Schema Information
6-
# Schema version: 20140918031936
76
#
87
# Table name: taggings
98
#

app/models/team.rb

+4-5
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ def create_slug!
865865
#
866866

867867
# == Schema Information
868-
# Schema version: 20140918031936
869868
#
870869
# Table name: teams
871870
#
@@ -874,11 +873,11 @@ def create_slug!
874873
# updated_at :datetime not null
875874
# website :string(255)
876875
# about :text
877-
# total :float default(0.0)
876+
# total :decimal(40, 30) default(0.0)
878877
# size :integer default(0)
879-
# mean :float default(0.0)
880-
# median :float default(0.0)
881-
# score :float default(0.0)
878+
# mean :decimal(40, 30) default(0.0)
879+
# median :decimal(40, 30) default(0.0)
880+
# score :decimal(40, 30) default(0.0)
882881
# twitter :string(255)
883882
# facebook :string(255)
884883
# slug :string(255)

app/models/teams/account.rb

-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ def current_plan
152152
end
153153

154154
# == Schema Information
155-
# Schema version: 20140918031936
156155
#
157156
# Table name: teams_accounts
158157
#

app/models/teams/account_plan.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Teams::AccountPlan < ActiveRecord::Base
44
end
55

66
# == Schema Information
7-
# Schema version: 20140918031936
87
#
98
# Table name: teams_account_plans
109
#

app/models/teams/member.rb

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def display_name
4343
end
4444

4545
# == Schema Information
46-
# Schema version: 20141015182230
4746
#
4847
# Table name: teams_members
4948
#

app/models/user.rb

-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,6 @@ def manage_github_orgs
940940
end
941941

942942
# == Schema Information
943-
# Schema version: 20140918031936
944943
#
945944
# Table name: users
946945
#

app/models/users/github/organization.rb

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ class Users::Github::Organization < ActiveRecord::Base
33
end
44

55
# == Schema Information
6-
# Schema version: 20140918031936
76
#
87
# Table name: users_github_organizations
98
#

app/models/users/github/organizations/follower.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Users::Github::Organizations::Follower < ActiveRecord::Base
44
end
55

66
# == Schema Information
7-
# Schema version: 20140918031936
87
#
98
# Table name: users_github_organizations_followers
109
#

app/models/users/github/profile.rb

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def extract_data_from_github
2020
end
2121

2222
# == Schema Information
23-
# Schema version: 20140918031936
2423
#
2524
# Table name: users_github_profiles
2625
#

app/models/users/github/profiles/follower.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Users::Github::Profiles::Follower < ActiveRecord::Base
44
end
55

66
# == Schema Information
7-
# Schema version: 20140918031936
87
#
98
# Table name: users_github_profiles_followers
109
#

app/models/users/github/repositories/contributor.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Users::Github::Repositories::Contributor < ActiveRecord::Base
44
end
55

66
# == Schema Information
7-
# Schema version: 20140918031936
87
#
98
# Table name: users_github_repositories_contributors
109
#

app/models/users/github/repositories/follower.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Users::Github::Repositories::Follower < ActiveRecord::Base
44
end
55

66
# == Schema Information
7-
# Schema version: 20140918031936
87
#
98
# Table name: users_github_repositories_followers
109
#

0 commit comments

Comments
 (0)