Skip to content

Commit

Permalink
Remove old Movie validations.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-strzalka committed Oct 25, 2022
1 parent 349972a commit 5a6f6d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/movie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
class Movie < ApplicationRecord
has_many :shows, dependent: :destroy

validates :title, length: { minimum: 1 }
validates :length_in_minutes, numericality: { in: 1..300 }

scope :sorted_alphabetically, -> { order(:title) }
end

0 comments on commit 5a6f6d9

Please sign in to comment.