Users create Programs . They can be followed / liked by other Users . However, the Program will ALWAYS have one creator.
So I need a ProgramsUsers table to display similar / follow. Will the "creator" also be considered as a relationship type in this table, or can Program also belongs_to specify one specific User ?
So essentially:
Program.rb
class Program < ActiveRecord::Base has_and_belongs_to_many :users
Is this acceptable or is it a bad simulation?
ruby-on-rails activerecord
dewyze
source share