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

Remove file date from validation
user
```ruby
class IepDocument < ActiveRecord::Base
  belongs_to :student
  validates :file_name, presence: true, uniqueness: true
end
```
assistant