Skip to content

Minutes model should not save records without dates #66

@PaulCongdon

Description

@PaulCongdon

Looks like the validator in the minutes model should be updated since we aren't 'importing' minutes anymore and it appears we have minutes in the database without dates. The validator below in models/minute.rb should be updated by dropping the unless (perhaps?):

class Minute < ActiveRecord::Base
belongs_to :item
belongs_to :meeting
belongs_to :minst
validates :date, presence: true, unless: "Rails.application.config.importing"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions