Show More
Commit Description:
add model solution
Commit Description:
add model solution
File last commit:
Show/Diff file:
Action:
app/models/contest.rb | 8 lines | 157 B | text/x-ruby | RubyLexer |
Jittat Fakcharoenphol
added contest model
r266 class Contest < ActiveRecord::Base
Jittat Fakcharoenphol
created join tables for contests and users and problems
r268
has_and_belongs_to_many :users
has_and_belongs_to_many :problems
update models to satisfy rails 4
r618 scope :enabled, -> { where(enabled: true) }
Jittat Fakcharoenphol
shows only enabled contests, ordered by name
r285
Jittat Fakcharoenphol
added contest model
r266 end