class IepDocument < ActiveRecord::Base
  belongs_to :student
  validates :file_name, uniqueness: { scope: :file_date, message: "one unique file name per date" }
end

class IepDocument < ActiveRecord::Base
  belongs_to :student
  validates :file_name, presence: true, uniqueness: true
end

Remove file date from validation
Remove file date from validation
