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

Version Path
assignable_values-1.0.1 spec/support/models.rb
assignable_values-1.0.0 spec/support/models.rb
assignable_values-0.18.1 spec/support/models.rb
assignable_values-0.18.0 spec/support/models.rb
assignable_values-0.17.0 spec/support/models.rb
assignable_values-0.16.6 spec/support/models.rb
assignable_values-0.16.5 spec/support/models.rb
assignable_values-0.16.4 spec/support/models.rb
assignable_values-0.16.3 spec/support/models.rb
assignable_values-0.16.2 spec/support/models.rb
assignable_values-0.16.1 spec/support/models.rb