Skip to content

Commit

Permalink
Increasing synopsis field maximum length to 300 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfar committed Jul 20, 2012
1 parent 93e7999 commit 671a295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/movie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.