Skip to content

Commit

Permalink
limitations should be creatable in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Bartels committed Dec 21, 2023
1 parent ea1ea21 commit e49aeda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/limitation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class Limitation < ApplicationRecord
validates :name, uniqueness: true
validates :name, length: { in: 2..50 }

validates :start_date, comparison: { greater_than: DateTime.now.utc }
validates :end_date, comparison: { greater_than: :start_date }

belongs_to :limitable, polymorphic: true, optional: true
Expand Down

0 comments on commit e49aeda

Please sign in to comment.