Sha256: 0c8515ee1e98d2e6dccadcaa9292621f537a9a8911d3ed8dd139d146c2cef2d5

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

class Post < ActiveRecord::Base
  has_many :comments, autosave: true, dependent: :destroy
  has_many :tags, autosave: true, dependent: :destroy
  belongs_to :category, autosave: true, dependent: :destroy
  belongs_to :user, autosave: true, dependent: :destroy
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
embedded_associations-4.1.2 spec/support/app/app/models/post.rb
embedded_associations-4.1.1 spec/support/app/app/models/post.rb
embedded_associations-4.1.0 spec/support/app/app/models/post.rb
embedded_associations-4.0.0 spec/support/app/app/models/post.rb