diff options
Diffstat (limited to 'activerecord/test/models/movie.rb')
-rw-r--r-- | activerecord/test/models/movie.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/models/movie.rb b/activerecord/test/models/movie.rb index 6384b4c801..0302abad1e 100644 --- a/activerecord/test/models/movie.rb +++ b/activerecord/test/models/movie.rb @@ -1,5 +1,5 @@ class Movie < ActiveRecord::Base - def self.primary_key - "movieid" - end + self.primary_key = "movieid" + + validates_presence_of :name end |