mastodon/db/migrate/20251118115657_create_collections.rb
David Roetzel b4cfb60a4d
Rename column
`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.
2025-11-21 09:39:13 +01:00

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