Commit a1fa6c617f950761662a21084b9c224324966e27
1 parent
986b4233
Exists in
master
and in
1 other branch
Adding associations to skip model
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/models/skip.rb
| 1 | class Skip < ActiveRecord::Base | 1 | class Skip < ActiveRecord::Base |
| 2 | belongs_to :skipper, :class_name => "Visitor", :foreign_key => "skipper_id" | 2 | belongs_to :skipper, :class_name => "Visitor", :foreign_key => "skipper_id" |
| 3 | - belongs_to :prompt, :class_name => "Prompt", :foreign_key => "prompt_id" | 3 | + belongs_to :question |
| 4 | + belongs_to :prompt | ||
| 5 | + belongs_to :appearance | ||
| 4 | end | 6 | end |