class Cycle < ApplicationRecord
  
  # relations
  belongs_to :user, optional: true
  has_many :cycle_steroids, :dependent => :destroy
	accepts_nested_attributes_for :cycle_steroids, :allow_destroy => true
  has_many :steroids, through: :cycle_steroids

  #validations
  validates_presence_of :name

end