Sha256: 6e0688dc7574a6942b62383cc2506fbef71f997da6ad200de9676130892ab836

Contents?: true

Size: 179 Bytes

Versions: 5

Compression:

Stored size: 179 Bytes

Contents

class Movie < ActiveRecord::Base

  belongs_to :director
  belongs_to :producer
  belongs_to :prequel, :class_name => 'Movie'

  validates_presence_of :title, :year

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
machinist_callbacks-0.2.0 spec/app_root/app/models/movie.rb
machinist_callbacks-0.1.3 spec/app_root/app/models/movie.rb
machinist_callbacks-0.1.2 spec/app_root/app/models/movie.rb
machinist_callbacks-0.1.1 spec/app_root/app/models/movie.rb
machinist_callbacks-0.1.0 spec/app_root/app/models/movie.rb