0
0
Fork 0

Remove conversation URI (#11423)

It is not part of ActivityPub and will free up a lot of space
This commit is contained in:
Eugen Rochko 2019-07-28 17:30:12 +02:00 committed by GitHub
parent cfb2ed7823
commit 75f7f9930e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 42 deletions

View file

@ -4,17 +4,10 @@
# Table name: conversations
#
# id :bigint(8) not null, primary key
# uri :string
# created_at :datetime not null
# updated_at :datetime not null
#
class Conversation < ApplicationRecord
validates :uri, uniqueness: true, if: :uri?
has_many :statuses
def local?
uri.nil?
end
end