Sha256: 1cd62577c50c0fa467554725cfb6a6613d8994f0746c38c1a25918477ceaad36

Contents?: true

Size: 155 Bytes

Versions: 78

Compression:

Stored size: 155 Bytes

Contents

class <%= class_name %> < ActiveRecord::Base
<% attributes.select(&:reference?).each do |attribute| -%>
  belongs_to :<%= attribute.name %>
<% end -%>
end

Version data entries

78 entries across 77 versions & 14 rubygems

Version Path
toastyapps-migratory-0.0.1 generators/model/templates/model.rb
toastyapps-migratory-0.0.10 generators/model/templates/model.rb
toastyapps-migratory-0.0.2 generators/model/templates/model.rb
toastyapps-migratory-0.0.3 generators/model/templates/model.rb
toastyapps-migratory-0.0.4 generators/model/templates/model.rb
toastyapps-migratory-0.0.5 generators/model/templates/model.rb
toastyapps-migratory-0.0.6 generators/model/templates/model.rb
toastyapps-migratory-0.0.7 generators/model/templates/model.rb
toastyapps-migratory-0.0.8 generators/model/templates/model.rb
toastyapps-migratory-0.0.9 generators/model/templates/model.rb
rails-2.3.18 lib/rails_generator/generators/components/model/templates/model.rb
rails_csi-2.3.5.p8 lib/rails_generator/generators/components/model/templates/model.rb
rails-2.3.17 lib/rails_generator/generators/components/model/templates/model.rb
rails_csi-2.3.5.p7 lib/rails_generator/generators/components/model/templates/model.rb
rails_csi-2.3.5.p6 lib/rails_generator/generators/components/model/templates/model.rb
rails-2.3.16 lib/rails_generator/generators/components/model/templates/model.rb
rails-2.3.15 lib/rails_generator/generators/components/model/templates/model.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rails-2.3.14/lib/rails_generator/generators/components/model/templates/model.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/rails-2.3.12/lib/rails_generator/generators/components/model/templates/model.rb
rails-2.3.14 lib/rails_generator/generators/components/model/templates/model.rb