Sha256: 8119afe0e703106465553c47d9420fe072edb3d71ad79b5116b576ccdc5bd399
Contents?: true
Size: 471 Bytes
Versions: 11
Compression:
Stored size: 471 Bytes
Contents
class Artist < ActiveRecord::Base has_many :songs end class Song < ActiveRecord::Base belongs_to :artist attr_accessor :virtual_sub_genre, :virtual_sub_genres, :virtual_multi_genres if ActiveRecord::VERSION::MAJOR < 4 || !Song.new(:multi_genres => ['test']).multi_genres.is_a?(Array) # Rails 4 or not postgres serialize :multi_genres end end module Recording class Vinyl < ActiveRecord::Base self.table_name = 'vinyl_recordings' end end
Version data entries
11 entries across 11 versions & 1 rubygems