Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Increasing synopsis field maximum length to 300 characters.

  • Loading branch information...
commit 671a2956e89566c0124cf79b3ab431818de1bc44 1 parent 93e7999
@luizfar luizfar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/movie.rb
View
2  app/models/movie.rb
@@ -3,7 +3,7 @@ class Movie < ActiveRecord::Base
has_and_belongs_to_many :genres
validates_uniqueness_of :title
- validates :synopsis, :length => { :maximum => 140 }
+ validates :synopsis, :length => { :maximum => 300 }
validates :year, :numericality => { :only_integer => true, :greater_than => 999, :less_than => 10000 }
validates :runtime, :numericality => { :only_integer => true, :greater_than => 99, :less_than => 1000 }
end
Please sign in to comment.
Something went wrong with that request. Please try again.