Run pending migrations

This commit is contained in:
rubic0n 2021-01-10 23:14:20 -06:00
parent 4f4f248fa1
commit 590dfc97e1
10 changed files with 28 additions and 29 deletions

View File

@ -3,7 +3,6 @@
# #
# Table name: accounts # Table name: accounts
# #
# id :bigint(8) not null, primary key
# username :string default(""), not null # username :string default(""), not null
# domain :string # domain :string
# secret :string default(""), not null # secret :string default(""), not null
@ -20,11 +19,11 @@
# url :string # url :string
# avatar_file_name :string # avatar_file_name :string
# avatar_content_type :string # avatar_content_type :string
# avatar_file_size :integer # avatar_file_size :bigint(8)
# avatar_updated_at :datetime # avatar_updated_at :datetime
# header_file_name :string # header_file_name :string
# header_content_type :string # header_content_type :string
# header_file_size :integer # header_file_size :bigint(8)
# header_updated_at :datetime # header_updated_at :datetime
# avatar_remote_url :string # avatar_remote_url :string
# subscription_expires_at :datetime # subscription_expires_at :datetime
@ -36,6 +35,7 @@
# shared_inbox_url :string default(""), not null # shared_inbox_url :string default(""), not null
# followers_url :string default(""), not null # followers_url :string default(""), not null
# protocol :integer default(0), not null # protocol :integer default(0), not null
# id :bigint(8) not null, primary key
# memorial :boolean default(FALSE), not null # memorial :boolean default(FALSE), not null
# moved_to_account_id :bigint(8) # moved_to_account_id :bigint(8)
# featured_collection_url :string # featured_collection_url :string
@ -43,10 +43,10 @@
# actor_type :string # actor_type :string
# discoverable :boolean # discoverable :boolean
# also_known_as :string is an Array # also_known_as :string is an Array
# silenced_at :datetime
# suspended_at :datetime
# is_pro :boolean default(FALSE), not null # is_pro :boolean default(FALSE), not null
# pro_expires_at :datetime # pro_expires_at :datetime
# silenced_at :datetime
# suspended_at :datetime
# is_verified :boolean default(FALSE), not null # is_verified :boolean default(FALSE), not null
# is_donor :boolean default(FALSE), not null # is_donor :boolean default(FALSE), not null
# is_investor :boolean default(FALSE), not null # is_investor :boolean default(FALSE), not null

View File

@ -7,7 +7,7 @@
# user_id :bigint(8) # user_id :bigint(8)
# dump_file_name :string # dump_file_name :string
# dump_content_type :string # dump_content_type :string
# dump_file_size :integer # dump_file_size :bigint(8)
# dump_updated_at :datetime # dump_updated_at :datetime
# processed :boolean default(FALSE), not null # processed :boolean default(FALSE), not null
# created_at :datetime not null # created_at :datetime not null

View File

@ -12,7 +12,7 @@
# is_approved :boolean default(FALSE), not null # is_approved :boolean default(FALSE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# unread_count :bigint(8) default(0), not null # unread_count :bigint(8) default(0)
# chat_message_expiration_policy :string # chat_message_expiration_policy :string
# is_muted :boolean default(FALSE), not null # is_muted :boolean default(FALSE), not null
# #

View File

@ -8,7 +8,7 @@
# domain :string # domain :string
# image_file_name :string # image_file_name :string
# image_content_type :string # image_content_type :string
# image_file_size :integer # image_file_size :bigint(8)
# image_updated_at :datetime # image_updated_at :datetime
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null

View File

@ -8,7 +8,7 @@
# description :string not null # description :string not null
# cover_image_file_name :string # cover_image_file_name :string
# cover_image_content_type :string # cover_image_content_type :string
# cover_image_file_size :integer # cover_image_file_size :bigint(8)
# cover_image_updated_at :datetime # cover_image_updated_at :datetime
# is_nsfw :boolean default(FALSE), not null # is_nsfw :boolean default(FALSE), not null
# is_featured :boolean default(FALSE), not null # is_featured :boolean default(FALSE), not null
@ -18,7 +18,7 @@
# member_count :integer default(0) # member_count :integer default(0)
# slug :text # slug :text
# is_private :boolean default(FALSE) # is_private :boolean default(FALSE)
# is_visible :boolean default(FALSE) # is_visible :boolean default(TRUE)
# tags :string default([]), is an Array # tags :string default([]), is an Array
# password :string # password :string
# group_category_id :integer # group_category_id :integer

View File

@ -6,7 +6,7 @@
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# list_id :bigint(8) not null # list_id :bigint(8) not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# follow_id :bigint(8) default(1) # follow_id :bigint(8)
# #
class ListAccount < ApplicationRecord class ListAccount < ApplicationRecord

View File

@ -3,11 +3,10 @@
# #
# Table name: media_attachments # Table name: media_attachments
# #
# id :bigint(8) not null, primary key
# status_id :bigint(8) # status_id :bigint(8)
# file_file_name :string # file_file_name :string
# file_content_type :string # file_content_type :string
# file_file_size :integer # file_file_size :bigint(8)
# file_updated_at :datetime # file_updated_at :datetime
# remote_url :string default(""), not null # remote_url :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
@ -16,6 +15,7 @@
# type :integer default("image"), not null # type :integer default("image"), not null
# file_meta :json # file_meta :json
# account_id :bigint(8) # account_id :bigint(8)
# id :bigint(8) not null, primary key
# description :text # description :text
# scheduled_status_id :bigint(8) # scheduled_status_id :bigint(8)
# blurhash :string # blurhash :string

View File

@ -9,7 +9,7 @@
# description :string default(""), not null # description :string default(""), not null
# image_file_name :string # image_file_name :string
# image_content_type :string # image_content_type :string
# image_file_size :integer # image_file_size :bigint(8)
# image_updated_at :datetime # image_updated_at :datetime
# type :integer default("link"), not null # type :integer default("link"), not null
# html :text default(""), not null # html :text default(""), not null

View File

@ -7,7 +7,7 @@
# var :string default(""), not null # var :string default(""), not null
# file_file_name :string # file_file_name :string
# file_content_type :string # file_content_type :string
# file_file_size :integer # file_file_size :bigint(8)
# file_updated_at :datetime # file_updated_at :datetime
# meta :json # meta :json
# created_at :datetime not null # created_at :datetime not null

View File

@ -13,7 +13,6 @@
ActiveRecord::Schema.define(version: 2021_01_17_210100) do ActiveRecord::Schema.define(version: 2021_01_17_210100) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql" enable_extension "plpgsql"
create_table "account_conversations", force: :cascade do |t| create_table "account_conversations", force: :cascade do |t|
@ -113,11 +112,11 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "url" t.string "url"
t.string "avatar_file_name" t.string "avatar_file_name"
t.string "avatar_content_type" t.string "avatar_content_type"
t.integer "avatar_file_size" t.bigint "avatar_file_size"
t.datetime "avatar_updated_at" t.datetime "avatar_updated_at"
t.string "header_file_name" t.string "header_file_name"
t.string "header_content_type" t.string "header_content_type"
t.integer "header_file_size" t.bigint "header_file_size"
t.datetime "header_updated_at" t.datetime "header_updated_at"
t.string "avatar_remote_url" t.string "avatar_remote_url"
t.datetime "subscription_expires_at" t.datetime "subscription_expires_at"
@ -136,10 +135,10 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "actor_type" t.string "actor_type"
t.boolean "discoverable" t.boolean "discoverable"
t.string "also_known_as", array: true t.string "also_known_as", array: true
t.datetime "silenced_at"
t.datetime "suspended_at"
t.boolean "is_pro", default: false, null: false t.boolean "is_pro", default: false, null: false
t.datetime "pro_expires_at" t.datetime "pro_expires_at"
t.datetime "silenced_at"
t.datetime "suspended_at"
t.boolean "is_verified", default: false, null: false t.boolean "is_verified", default: false, null: false
t.boolean "is_donor", default: false, null: false t.boolean "is_donor", default: false, null: false
t.boolean "is_investor", default: false, null: false t.boolean "is_investor", default: false, null: false
@ -180,7 +179,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.bigint "user_id" t.bigint "user_id"
t.string "dump_file_name" t.string "dump_file_name"
t.string "dump_content_type" t.string "dump_content_type"
t.integer "dump_file_size" t.bigint "dump_file_size"
t.datetime "dump_updated_at" t.datetime "dump_updated_at"
t.boolean "processed", default: false, null: false t.boolean "processed", default: false, null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
@ -223,7 +222,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.boolean "is_approved", default: false, null: false t.boolean "is_approved", default: false, null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.bigint "unread_count", default: 0, null: false t.bigint "unread_count", default: 0
t.string "chat_message_expiration_policy" t.string "chat_message_expiration_policy"
t.boolean "is_muted", default: false, null: false t.boolean "is_muted", default: false, null: false
t.index ["account_id"], name: "index_chat_conversation_accounts_on_account_id" t.index ["account_id"], name: "index_chat_conversation_accounts_on_account_id"
@ -258,7 +257,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "domain" t.string "domain"
t.string "image_file_name" t.string "image_file_name"
t.string "image_content_type" t.string "image_content_type"
t.integer "image_file_size" t.bigint "image_file_size"
t.datetime "image_updated_at" t.datetime "image_updated_at"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
@ -372,7 +371,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "description", null: false t.string "description", null: false
t.string "cover_image_file_name" t.string "cover_image_file_name"
t.string "cover_image_content_type" t.string "cover_image_content_type"
t.integer "cover_image_file_size" t.bigint "cover_image_file_size"
t.datetime "cover_image_updated_at" t.datetime "cover_image_updated_at"
t.boolean "is_nsfw", default: false, null: false t.boolean "is_nsfw", default: false, null: false
t.boolean "is_featured", default: false, null: false t.boolean "is_featured", default: false, null: false
@ -382,7 +381,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.integer "member_count", default: 0 t.integer "member_count", default: 0
t.text "slug" t.text "slug"
t.boolean "is_private", default: false t.boolean "is_private", default: false
t.boolean "is_visible", default: false t.boolean "is_visible", default: true
t.string "tags", default: [], array: true t.string "tags", default: [], array: true
t.string "password" t.string "password"
t.integer "group_category_id" t.integer "group_category_id"
@ -409,7 +408,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
create_table "list_accounts", force: :cascade do |t| create_table "list_accounts", force: :cascade do |t|
t.bigint "list_id", null: false t.bigint "list_id", null: false
t.bigint "account_id", null: false t.bigint "account_id", null: false
t.bigint "follow_id", default: 1 t.bigint "follow_id"
t.index ["account_id", "list_id"], name: "index_list_accounts_on_account_id_and_list_id", unique: true t.index ["account_id", "list_id"], name: "index_list_accounts_on_account_id_and_list_id", unique: true
t.index ["follow_id"], name: "index_list_accounts_on_follow_id" t.index ["follow_id"], name: "index_list_accounts_on_follow_id"
t.index ["list_id", "account_id"], name: "index_list_accounts_on_list_id_and_account_id" t.index ["list_id", "account_id"], name: "index_list_accounts_on_list_id_and_account_id"
@ -439,7 +438,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.bigint "status_id" t.bigint "status_id"
t.string "file_file_name" t.string "file_file_name"
t.string "file_content_type" t.string "file_content_type"
t.integer "file_file_size" t.bigint "file_file_size"
t.datetime "file_updated_at" t.datetime "file_updated_at"
t.string "remote_url", default: "", null: false t.string "remote_url", default: "", null: false
t.datetime "created_at", null: false t.datetime "created_at", null: false
@ -581,7 +580,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "description", default: "", null: false t.string "description", default: "", null: false
t.string "image_file_name" t.string "image_file_name"
t.string "image_content_type" t.string "image_content_type"
t.integer "image_file_size" t.bigint "image_file_size"
t.datetime "image_updated_at" t.datetime "image_updated_at"
t.integer "type", default: 0, null: false t.integer "type", default: 0, null: false
t.text "html", default: "", null: false t.text "html", default: "", null: false
@ -684,7 +683,7 @@ ActiveRecord::Schema.define(version: 2021_01_17_210100) do
t.string "var", default: "", null: false t.string "var", default: "", null: false
t.string "file_file_name" t.string "file_file_name"
t.string "file_content_type" t.string "file_content_type"
t.integer "file_file_size" t.bigint "file_file_size"
t.datetime "file_updated_at" t.datetime "file_updated_at"
t.json "meta" t.json "meta"
t.datetime "created_at", null: false t.datetime "created_at", null: false