Sha256: c52f672d1d7b1288c0a16235d085a9af6fd57f31174651254789b20ee3fb8be3

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

#
# Test model
class User < ActiveRecord::Base
  field :name
  field :number, type: Integer

  has_many :bikes

  has_many :extras, dependent: :destroy, class_name: 'UserExtra'
  has_many :skills, dependent: :destroy, class_name: 'UserSkill'
end

class UserSkill < ActiveRecord::Base
  field :kind
  belongs_to :user
end

class UserExtra < ActiveRecord::Base
  field :key
  belongs_to :user
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
schemaless-0.0.5 spec/dummy/app/models/user.rb
schemaless-0.0.3 spec/dummy/app/models/user.rb