Sha256: 4427ad9f25b714dd28045e8e79cad7a43f14be1b7b9c3eab870d991f818c77ee

Contents?: true

Size: 223 Bytes

Versions: 6

Compression:

Stored size: 223 Bytes

Contents

class BelongsToModel < ActiveRecord::Base
  has_fields do |f|
    f.string :name

    f.belongs_to :simple
    f.belongs_to :some, :class_name => 'Simple'
    f.belongs_to :parent, :class_name => 'BelongsToModel'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
automigration-1.0.3 spec/dummy/app/models/belongs_to_model.rb
automigration-1.0.2 spec/dummy/app/models/belongs_to_model.rb
automigration-1.0.1 spec/dummy/app/models/belongs_to_model.rb
automigration-1.0.0 spec/dummy/app/models/belongs_to_model.rb
automigration-0.2.2 test/models/belongs_to_model.rb
automigration-0.2.1 test/models/belongs_to_model.rb