mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 10:53:39 +00:00
`remote_items` was nice and short but could be misunderstood as "how many items are accounts from other servers". This should make it clear that this is the number of items for remote collections that could in theory exceed Mastodon's limit.
20 lines
675 B
Ruby
20 lines
675 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateCollections < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :collections do |t|
|
|
t.references :account, null: false, foreign_key: true
|
|
t.string :name, null: false
|
|
t.text :description, null: false
|
|
t.string :uri
|
|
t.boolean :local, null: false # rubocop:disable Rails/ThreeStateBooleanColumn
|
|
t.boolean :sensitive, null: false # rubocop:disable Rails/ThreeStateBooleanColumn
|
|
t.boolean :discoverable, null: false # rubocop:disable Rails/ThreeStateBooleanColumn
|
|
t.references :tag, foreign_key: true
|
|
t.integer :original_number_of_items
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|