Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails class reminders belongs_to creator

class Task < ActiveRecord::Base
  belongs_to :soldier
  belongs_to :creator, class_name: 'Soldier', foreign_key: :created_by
end 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #class #reminders #creator
ADD COMMENT
Topic
Name
8+8 =