Generalize the BudgetInvestmentStatus model to Milestone::Status so it is not specific to budget investments, but can be used for any entity which has milestones. This is in preparation to make the Milestone model polymorphic and usable by entities other than budget investments.
8 lines
146 B
Ruby
8 lines
146 B
Ruby
class Milestone::Status < ActiveRecord::Base
|
|
acts_as_paranoid column: :hidden_at
|
|
|
|
has_many :milestones
|
|
|
|
validates :name, presence: true
|
|
end
|