Sha256: 6cc11a7fb6f5644757645328a2f36c3b6fe2aefdb42a4465f94d3642dbcdd69d

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

class Artist < ActiveRecord::Base

  has_many :songs

end

class Song < ActiveRecord::Base

  belongs_to :artist

  attr_accessor :sub_genre, :sub_genres, :multi_genres

  if ActiveRecord::VERSION::MAJOR < 4 || !Song.new(:genres => ['test']).genres.is_a?(Array)
    # Rails 4 or not postgres
    serialize :genres
  end

end

module Recording
  class Vinyl < ActiveRecord::Base
    self.table_name = 'vinyl_recordings'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
assignable_values-0.16.0 spec/support/models.rb
assignable_values-0.15.1 spec/support/models.rb
assignable_values-0.15.0 spec/support/models.rb