Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Patricio Sanchez
/
quiniela-mundial
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
psanchezp
2018-06-12 12:19:10 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
311faf06cad8600876b4b8cf4781c70d000a6995
311faf06
1 parent
f08d7f7d
Modified validation
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/models/bet.rb
app/models/bet.rb
View file @
311faf0
#
class
Bet
<
ApplicationRecord
validates
:
visit
,
:local
,
:date
,
presence:
true
validates
:
score_visit
,
:score_local
,
:user_id
,
:match_id
,
presence:
true
belongs_to
:user
,
inverse_of: :bets
belongs_to
:match
,
inverse_of: :bets
has_one
:group
,
through: :user
,
inverse_of: :bets
...
...
Please
register
or
login
to post a comment