about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2018-12-11 19:07:38 +0000
committerpluralcafe-docker <git@plural.cafe>2018-12-11 19:07:38 +0000
commit1c0b2479045015b96907eaa7567bfd14e4593424 (patch)
treea054dda635ffd019bf2fdc10ed4f3341264f1490 /db
parentee5213093a084c2eb5fa97fb4bdea6019dda5cf5 (diff)
Revert "Add profile directory (#9427)"
This reverts commit ee5213093a084c2eb5fa97fb4bdea6019dda5cf5.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20181203003808_create_accounts_tags_join_table.rb8
-rw-r--r--db/migrate/20181203021853_add_discoverable_to_accounts.rb5
-rw-r--r--db/migrate/20181204193439_add_last_status_at_to_account_stats.rb5
-rw-r--r--db/migrate/20181204215309_create_account_tag_stats.rb11
-rw-r--r--db/schema.rb21
5 files changed, 1 insertions, 49 deletions
diff --git a/db/migrate/20181203003808_create_accounts_tags_join_table.rb b/db/migrate/20181203003808_create_accounts_tags_join_table.rb
deleted file mode 100644
index 3c275c2b7..000000000
--- a/db/migrate/20181203003808_create_accounts_tags_join_table.rb
+++ /dev/null
@@ -1,8 +0,0 @@
-class CreateAccountsTagsJoinTable < ActiveRecord::Migration[5.2]
-  def change
-    create_join_table :accounts, :tags do |t|
-      t.index [:account_id, :tag_id]
-      t.index [:tag_id, :account_id], unique: true
-    end
-  end
-end
diff --git a/db/migrate/20181203021853_add_discoverable_to_accounts.rb b/db/migrate/20181203021853_add_discoverable_to_accounts.rb
deleted file mode 100644
index 5bbae2203..000000000
--- a/db/migrate/20181203021853_add_discoverable_to_accounts.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddDiscoverableToAccounts < ActiveRecord::Migration[5.2]
-  def change
-    add_column :accounts, :discoverable, :boolean
-  end
-end
diff --git a/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb b/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb
deleted file mode 100644
index 946662707..000000000
--- a/db/migrate/20181204193439_add_last_status_at_to_account_stats.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddLastStatusAtToAccountStats < ActiveRecord::Migration[5.2]
-  def change
-    add_column :account_stats, :last_status_at, :datetime
-  end
-end
diff --git a/db/migrate/20181204215309_create_account_tag_stats.rb b/db/migrate/20181204215309_create_account_tag_stats.rb
deleted file mode 100644
index 15ed8587e..000000000
--- a/db/migrate/20181204215309_create_account_tag_stats.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreateAccountTagStats < ActiveRecord::Migration[5.2]
-  def change
-    create_table :account_tag_stats do |t|
-      t.belongs_to :tag, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
-      t.bigint :accounts_count, default: 0, null: false
-      t.boolean :hidden, default: false, null: false
-
-      t.timestamps
-    end
-  end
-end
diff --git a/db/schema.rb b/db/schema.rb
index 6e30ed120..4db687137 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 2018_12_04_215309) do
+ActiveRecord::Schema.define(version: 2018_11_27_165847) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -63,19 +63,9 @@ ActiveRecord::Schema.define(version: 2018_12_04_215309) do
     t.bigint "followers_count", default: 0, null: false
     t.datetime "created_at", null: false
     t.datetime "updated_at", null: false
-    t.datetime "last_status_at"
     t.index ["account_id"], name: "index_account_stats_on_account_id", unique: true
   end
 
-  create_table "account_tag_stats", force: :cascade do |t|
-    t.bigint "tag_id", null: false
-    t.bigint "accounts_count", default: 0, null: false
-    t.boolean "hidden", default: false, null: false
-    t.datetime "created_at", null: false
-    t.datetime "updated_at", null: false
-    t.index ["tag_id"], name: "index_account_tag_stats_on_tag_id", unique: true
-  end
-
   create_table "accounts", force: :cascade do |t|
     t.string "username", default: "", null: false
     t.string "domain"
@@ -116,7 +106,6 @@ ActiveRecord::Schema.define(version: 2018_12_04_215309) do
     t.string "featured_collection_url"
     t.jsonb "fields"
     t.string "actor_type"
-    t.boolean "discoverable"
     t.index "(((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::\"char\") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::\"char\")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::\"char\")))", name: "search_index", using: :gin
     t.index "lower((username)::text), lower((domain)::text)", name: "index_accounts_on_username_and_domain_lower", unique: true
     t.index ["moved_to_account_id"], name: "index_accounts_on_moved_to_account_id"
@@ -124,13 +113,6 @@ ActiveRecord::Schema.define(version: 2018_12_04_215309) do
     t.index ["url"], name: "index_accounts_on_url"
   end
 
-  create_table "accounts_tags", id: false, force: :cascade do |t|
-    t.bigint "account_id", null: false
-    t.bigint "tag_id", null: false
-    t.index ["account_id", "tag_id"], name: "index_accounts_tags_on_account_id_and_tag_id"
-    t.index ["tag_id", "account_id"], name: "index_accounts_tags_on_tag_id_and_account_id", unique: true
-  end
-
   create_table "admin_action_logs", force: :cascade do |t|
     t.bigint "account_id"
     t.string "action", default: "", null: false
@@ -667,7 +649,6 @@ ActiveRecord::Schema.define(version: 2018_12_04_215309) do
   add_foreign_key "account_pins", "accounts", column: "target_account_id", on_delete: :cascade
   add_foreign_key "account_pins", "accounts", on_delete: :cascade
   add_foreign_key "account_stats", "accounts", on_delete: :cascade
-  add_foreign_key "account_tag_stats", "tags", on_delete: :cascade
   add_foreign_key "accounts", "accounts", column: "moved_to_account_id", on_delete: :nullify
   add_foreign_key "admin_action_logs", "accounts", on_delete: :cascade
   add_foreign_key "backups", "users", on_delete: :nullify