Permalink
Browse files

Increasing synopsis field maximum length to 300 characters.

  • Loading branch information...
luizfar committed Jul 20, 2012
1 parent 93e7999 commit 671a2956e89566c0124cf79b3ab431818de1bc44
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/movie.rb
View
@@ -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

0 comments on commit 671a295

Please sign in to comment.