Sha256: a7e8fe894c31402a66b2ec78ef953b06994e429b9e573e3bca53b5c1e3c4e800
Contents?: true
Size: 231 Bytes
Versions: 3
Compression:
Stored size: 231 Bytes
Contents
class Movie < ApplicationRecord has_many :movie_likes, dependent: :destroy has_many :users, through: :movie_likes validates :name, presence: true validates :name, presence: true, uniqueness: { case_sensitive: false } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
recommender-2.0.1 | spec/test_app/app/models/movie.rb |
recommender-2.0.0 | spec/test_app/app/models/movie.rb |
recommender-0.1.0 | spec/test_app/app/models/movie.rb |