mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
remove experimental group deps
This commit is contained in:
parent
345ddeefdc
commit
2a68356f61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user