Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update model annotations

  • Loading branch information...
commit 80815bbbe4f64222e4f3ec0a2a53ce1fc00cac53 1 parent 6b6ee98
@geraldb geraldb authored
View
17 app/models/bonus_point.rb
@@ -1,3 +1,20 @@
+# == Schema Information
+#
+# Table name: bonus_points
+#
+# id :integer not null, primary key
+# user_id :integer not null
+# pool_id :integer not null
+# round_id :integer not null
+# round_pts :integer default(0), not null
+# round_pos :integer default(0), not null
+# total_pts :integer default(0), not null
+# total_pos :integer default(0), not null
+# diff_total_pos :integer default(0), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
class BonusPoint < ActiveRecord::Base
belongs_to :user
View
12 app/models/bonus_question.rb
@@ -1,3 +1,15 @@
+# == Schema Information
+#
+# Table name: bonus_questions
+#
+# id :integer not null, primary key
+# round_id :integer not null
+# title :string(255) not null
+# pos :integer not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
class BonusQuestion < ActiveRecord::Base
View
12 app/models/bonus_round.rb
@@ -1,3 +1,15 @@
+# == Schema Information
+#
+# Table name: bonus_rounds
+#
+# id :integer not null, primary key
+# pool_id :integer not null
+# title :string(255) not null
+# pos :integer not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
class BonusRound < ActiveRecord::Base
View
12 app/models/bonus_tip.rb
@@ -1,3 +1,15 @@
+# == Schema Information
+#
+# Table name: bonus_tips
+#
+# id :integer not null, primary key
+# user_id :integer not null
+# question_id :integer not null
+# pts :integer default(0), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
class BonusTip < ActiveRecord::Base
View
8 app/models/calc_round.rb
@@ -7,13 +7,15 @@
# title :string(255) not null
# title2 :string(255)
# pos :integer not null
-# playoff :boolean default(FALSE), not null
+# knockout :boolean default(FALSE), not null
+# start_at :datetime not null
+# end_at :datetime
+# created_at :datetime not null
+# updated_at :datetime not null
# flex :boolean default(TRUE), not null
# fix :boolean default(TRUE), not null
# type :string(255)
# calc :boolean default(FALSE), not null
-# created_at :datetime not null
-# updated_at :datetime not null
#
View
12 app/models/calc_team.rb
@@ -4,16 +4,22 @@
#
# id :integer not null, primary key
# title :string(255) not null
+# title2 :string(255)
# key :string(255) not null
-# img :string(255)
# tag :string(255)
+# synonyms :string(255)
+# country_id :integer not null
+# city_id :integer
+# club :boolean default(FALSE), not null
+# national :boolean default(FALSE), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# img :string(255)
# type :string(255)
# calc :boolean default(FALSE), not null
# calc_rule :string(255)
# calc_value :string(255)
# calc_team_id :integer
-# created_at :datetime not null
-# updated_at :datetime not null
#
View
9 app/models/event.rb
@@ -4,11 +4,14 @@
#
# id :integer not null, primary key
# title :string(255) not null
-# start_at :datetime
-# team3 :boolean default(TRUE)
+# key :string(255) not null
+# league_id :integer not null
+# season_id :integer not null
+# start_at :datetime not null
+# end_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
-# key :string(255)
+# team3 :boolean default(TRUE), not null
#
View
14 app/models/event_quote.rb
@@ -1,3 +1,17 @@
+# == Schema Information
+#
+# Table name: event_quotes
+#
+# id :integer not null, primary key
+# service_id :integer not null
+# event_id :integer not null
+# team_id :integer not null
+# odds :decimal(, ) not null
+# comments :string(255)
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
EventQuote = SportDB::Models::EventQuote
View
14 app/models/group_quote.rb
@@ -1,3 +1,17 @@
+# == Schema Information
+#
+# Table name: group_quotes
+#
+# id :integer not null, primary key
+# service_id :integer not null
+# group_id :integer not null
+# team_id :integer not null
+# odds :decimal(, ) not null
+# comments :string(255)
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
GroupQuote = SportDB::Models::GroupQuote
View
21 app/models/pool.rb
@@ -2,15 +2,18 @@
#
# Table name: pools
#
-# id :integer not null, primary key
-# event_id :integer not null
-# title :string(255) not null
-# user_id :integer not null
-# fix :boolean default(FALSE), not null
-# welcome :text
-# created_at :datetime not null
-# updated_at :datetime not null
-# key :string(255)
+# id :integer not null, primary key
+# event_id :integer not null
+# title :string(255) not null
+# user_id :integer not null
+# fix :boolean default(FALSE), not null
+# public :boolean default(TRUE), not null
+# locked :boolean default(FALSE), not null
+# welcome :text
+# welcome_html :text
+# key :string(255)
+# created_at :datetime not null
+# updated_at :datetime not null
#
class Pool < ActiveRecord::Base
View
15 app/models/quote.rb
@@ -1,2 +1,17 @@
+# == Schema Information
+#
+# Table name: quotes
+#
+# id :integer not null, primary key
+# service_id :integer not null
+# game_id :integer not null
+# odds1 :decimal(, ) not null
+# oddsx :decimal(, ) not null
+# odds2 :decimal(, ) not null
+# comments :string(255)
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
Quote = SportDB::Models::Quote
View
8 app/models/round.rb
@@ -7,13 +7,15 @@
# title :string(255) not null
# title2 :string(255)
# pos :integer not null
-# playoff :boolean default(FALSE), not null
+# knockout :boolean default(FALSE), not null
+# start_at :datetime not null
+# end_at :datetime
+# created_at :datetime not null
+# updated_at :datetime not null
# flex :boolean default(TRUE), not null
# fix :boolean default(TRUE), not null
# type :string(255)
# calc :boolean default(FALSE), not null
-# created_at :datetime not null
-# updated_at :datetime not null
#
module SportDB::Models
View
11 app/models/service.rb
@@ -1,3 +1,14 @@
+# == Schema Information
+#
+# Table name: services
+#
+# id :integer not null, primary key
+# title :string(255) not null
+# key :string(255) not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
Service = SportDB::Models::Service
View
12 app/models/team.rb
@@ -4,16 +4,22 @@
#
# id :integer not null, primary key
# title :string(255) not null
+# title2 :string(255)
# key :string(255) not null
-# img :string(255)
# tag :string(255)
+# synonyms :string(255)
+# country_id :integer not null
+# city_id :integer
+# club :boolean default(FALSE), not null
+# national :boolean default(FALSE), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+# img :string(255)
# type :string(255)
# calc :boolean default(FALSE), not null
# calc_rule :string(255)
# calc_value :string(255)
# calc_team_id :integer
-# created_at :datetime not null
-# updated_at :datetime not null
#
View
7 app/models/user.rb
@@ -6,7 +6,10 @@
# name :string(255) not null
# email :string(255) not null
# password_digest :string(255)
-# key :string(255)
+# key :string(255) not null
+# admin :boolean default(FALSE), not null
+# guest :boolean default(FALSE), not null
+# active :boolean default(TRUE), not null
# created_at :datetime not null
# updated_at :datetime not null
#
@@ -51,4 +54,4 @@ def self.create_from_ary!( users )
end # each user
end
-end # class User
+end # class User
Please sign in to comment.
Something went wrong with that request. Please try again.