Sha256: 8e2b602cfbf07d35b84e775bc675b499043a5cc6c815a7dca4085083502ee0bb

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

class User < ActiveRecord::Base
  has_many :tweets,   dependent: :destroy
  has_many :comments, dependent: :destroy
  has_one :avatar,    dependent: :destroy,  class_name: 'Picture',        as: :imageable
  has_one :setting,   dependent: :destroy,  class_name: 'AccountSetting'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dread-0.0.7 test/dummy/app/models/user.rb
dread-0.0.6 test/dummy/app/models/user.rb