Skip to content

Commit

Permalink
Fix Bug That Was Allowing Duplicate Key Error in MySQL for Event Conn…
Browse files Browse the repository at this point in the history
…ections
  • Loading branch information
athundle committed Mar 13, 2012
1 parent 46650c1 commit 43152ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/event_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class EventConnection < ActiveRecord::Base
belongs_to :event
belongs_to :learner
has_many :event_activities, :as => :trackable, dependent: :destroy
validates :learner_id, :uniqueness => {:scope => [:event_id, :connectiontype]}

BOOKMARK = 3
ATTEND = 4
Expand Down

0 comments on commit 43152ab

Please sign in to comment.