remove experimental group deps

This commit is contained in:
tykayn 2019-10-07 20:55:47 +02:00
parent 345ddeefdc
commit 2a68356f61
1 changed files with 0 additions and 12 deletions

View File

@ -7,18 +7,6 @@ class CreateUserGroups < ActiveRecord::Migration[5.2]
t.integer :account_id
t.integer :creator_id
t.integer :statuses_count
has_many :accounts, foreign_key: :domain, primary_key: :domain
has_many :note, foreign_key: :domain, primary_key: :domain
has_many :statuses, inverse_of: :account, dependent: :destroy
has_many :favourites, inverse_of: :account, dependent: :destroy
has_many :mentions, inverse_of: :account, dependent: :destroy
has_many :notifications, inverse_of: :account, dependent: :destroy
has_many :conversations, class_name: 'AccountConversation', dependent: :destroy, inverse_of: :account
has_many :scheduled_statuses, inverse_of: :account, dependent: :destroy
# Pinned statuses
has_many :status_pins, inverse_of: :account, dependent: :destroy
has_many :pinned_statuses, -> { reorder('status_pins.created_at DESC') }, through: :status_pins, class_name: 'Status', source: :status
t.timestamps
end