class Pie < ActiveRecord::Base
  belongs_to :user
  validates_uniqueness_of :title, scope: :user_id
end

class Pie < ActiveRecord::Base
  belongs_to :user
  validates_uniqueness_of :title, scope: :user_id
  has_many :pie_pieces
end

Add Pie has_many PiePieces association
Add Pie has_many PiePieces association
