Added ActiveRecord associations.