RUBYCRITIC
# == Schema Information
#
# Table name: pipelines
#
# id :bigint not null, primary key
# name :string default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
#
class Pipeline < ApplicationRecord
broadcasts_refreshes
has_many :stages
has_many :deals
accepts_nested_attributes_for :stages, reject_if: :all_blank, allow_destroy: true
end