From a0e6c27332e859a08cf01d4bb7ca180ae2fd55f8 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 30 Sep 2017 23:01:22 +0200 Subject: [PATCH] regenerated schema --- db/schema.rb | 261 --------------------------------------------------- 1 file changed, 261 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 8df178bf..a503f9b4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -304,19 +304,6 @@ ActiveRecord::Schema.define(version: 20170731010449) do add_index "floras", ["universe_id"], name: "index_floras_on_universe_id" add_index "floras", ["user_id"], name: "index_floras_on_user_id" - create_table "friendly_id_slugs", force: :cascade do |t| - t.string "slug", null: false - t.integer "sluggable_id", null: false - t.string "sluggable_type", limit: 50 - t.string "scope" - t.datetime "created_at" - end - - add_index "friendly_id_slugs", ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true - add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type" - add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id" - add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type" - create_table "group_allyships", force: :cascade do |t| t.integer "user_id" t.integer "group_id" @@ -661,13 +648,6 @@ ActiveRecord::Schema.define(version: 20170731010449) do t.datetime "updated_at", null: false end - create_table "related_floras", force: :cascade do |t| - t.integer "flora_id" - t.integer "related_flora_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "religions", force: :cascade do |t| t.string "name" t.string "description" @@ -789,245 +769,6 @@ ActiveRecord::Schema.define(version: 20170731010449) do t.integer "supergroup_id" end - create_table "thredded_categories", force: :cascade do |t| - t.integer "messageboard_id", null: false - t.string "name", limit: 191, null: false - t.string "description", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.string "slug", limit: 191, null: false - end - - add_index "thredded_categories", ["messageboard_id", "slug"], name: "index_thredded_categories_on_messageboard_id_and_slug", unique: true - add_index "thredded_categories", ["messageboard_id"], name: "index_thredded_categories_on_messageboard_id" - add_index "thredded_categories", ["name"], name: "thredded_categories_name_ci" - - create_table "thredded_messageboard_groups", force: :cascade do |t| - t.string "name" - t.integer "position", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "thredded_messageboard_notifications_for_followed_topics", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "messageboard_id", null: false - t.string "notifier_key", limit: 90, null: false - t.boolean "enabled", default: true, null: false - end - - add_index "thredded_messageboard_notifications_for_followed_topics", ["user_id", "messageboard_id", "notifier_key"], name: "thredded_messageboard_notifications_for_followed_topics_unique", unique: true - - create_table "thredded_messageboard_users", force: :cascade do |t| - t.integer "thredded_user_detail_id", null: false - t.integer "thredded_messageboard_id", null: false - t.datetime "last_seen_at", null: false - end - - add_index "thredded_messageboard_users", ["thredded_messageboard_id", "last_seen_at"], name: "index_thredded_messageboard_users_for_recently_active" - add_index "thredded_messageboard_users", ["thredded_messageboard_id", "thredded_user_detail_id"], name: "index_thredded_messageboard_users_primary" - - create_table "thredded_messageboards", force: :cascade do |t| - t.string "name", limit: 191, null: false - t.string "slug", limit: 191 - t.text "description" - t.integer "topics_count", default: 0 - t.integer "posts_count", default: 0 - t.integer "position", null: false - t.integer "last_topic_id" - t.integer "messageboard_group_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_messageboards", ["messageboard_group_id"], name: "index_thredded_messageboards_on_messageboard_group_id" - add_index "thredded_messageboards", ["slug"], name: "index_thredded_messageboards_on_slug" - - create_table "thredded_notifications_for_followed_topics", force: :cascade do |t| - t.integer "user_id", null: false - t.string "notifier_key", limit: 90, null: false - t.boolean "enabled", default: true, null: false - end - - add_index "thredded_notifications_for_followed_topics", ["user_id", "notifier_key"], name: "thredded_notifications_for_followed_topics_unique", unique: true - - create_table "thredded_notifications_for_private_topics", force: :cascade do |t| - t.integer "user_id", null: false - t.string "notifier_key", limit: 90, null: false - t.boolean "enabled", default: true, null: false - end - - add_index "thredded_notifications_for_private_topics", ["user_id", "notifier_key"], name: "thredded_notifications_for_private_topics_unique", unique: true - - create_table "thredded_post_moderation_records", force: :cascade do |t| - t.integer "post_id" - t.integer "messageboard_id" - t.text "post_content", limit: 65535 - t.integer "post_user_id" - t.text "post_user_name" - t.integer "moderator_id" - t.integer "moderation_state", null: false - t.integer "previous_moderation_state", null: false - t.datetime "created_at", null: false - end - - add_index "thredded_post_moderation_records", ["messageboard_id", "created_at"], name: "index_thredded_moderation_records_for_display" - - create_table "thredded_posts", force: :cascade do |t| - t.integer "user_id" - t.text "content", limit: 65535 - t.string "ip", limit: 255 - t.string "source", limit: 255, default: "web" - t.integer "postable_id", null: false - t.integer "messageboard_id", null: false - t.integer "moderation_state", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_posts", ["messageboard_id"], name: "index_thredded_posts_on_messageboard_id" - add_index "thredded_posts", ["moderation_state", "updated_at"], name: "index_thredded_posts_for_display" - add_index "thredded_posts", ["postable_id"], name: "index_thredded_posts_on_postable_id_and_postable_type" - add_index "thredded_posts", ["user_id"], name: "index_thredded_posts_on_user_id" - - create_table "thredded_private_posts", force: :cascade do |t| - t.integer "user_id" - t.text "content", limit: 65535 - t.integer "postable_id", null: false - t.string "ip", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "thredded_private_topics", force: :cascade do |t| - t.integer "user_id" - t.integer "last_user_id" - t.string "title", limit: 255, null: false - t.string "slug", limit: 191, null: false - t.integer "posts_count", default: 0 - t.string "hash_id", limit: 191, null: false - t.datetime "last_post_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_private_topics", ["hash_id"], name: "index_thredded_private_topics_on_hash_id" - add_index "thredded_private_topics", ["slug"], name: "index_thredded_private_topics_on_slug" - - create_table "thredded_private_users", force: :cascade do |t| - t.integer "private_topic_id" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_private_users", ["private_topic_id"], name: "index_thredded_private_users_on_private_topic_id" - add_index "thredded_private_users", ["user_id"], name: "index_thredded_private_users_on_user_id" - - create_table "thredded_topic_categories", force: :cascade do |t| - t.integer "topic_id", null: false - t.integer "category_id", null: false - end - - add_index "thredded_topic_categories", ["category_id"], name: "index_thredded_topic_categories_on_category_id" - add_index "thredded_topic_categories", ["topic_id"], name: "index_thredded_topic_categories_on_topic_id" - - create_table "thredded_topics", force: :cascade do |t| - t.integer "user_id" - t.integer "last_user_id" - t.string "title", limit: 255, null: false - t.string "slug", limit: 191, null: false - t.integer "messageboard_id", null: false - t.integer "posts_count", default: 0, null: false - t.boolean "sticky", default: false, null: false - t.boolean "locked", default: false, null: false - t.string "hash_id", limit: 191, null: false - t.string "type", limit: 191 - t.integer "moderation_state", null: false - t.datetime "last_post_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_topics", ["hash_id"], name: "index_thredded_topics_on_hash_id" - add_index "thredded_topics", ["messageboard_id"], name: "index_thredded_topics_on_messageboard_id" - add_index "thredded_topics", ["moderation_state", "sticky", "updated_at"], name: "index_thredded_topics_for_display" - add_index "thredded_topics", ["slug"], name: "index_thredded_topics_on_slug", unique: true - add_index "thredded_topics", ["user_id"], name: "index_thredded_topics_on_user_id" - - create_table "thredded_user_details", force: :cascade do |t| - t.integer "user_id", null: false - t.datetime "latest_activity_at" - t.integer "posts_count", default: 0 - t.integer "topics_count", default: 0 - t.datetime "last_seen_at" - t.integer "moderation_state", default: 0, null: false - t.datetime "moderation_state_changed_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_user_details", ["latest_activity_at"], name: "index_thredded_user_details_on_latest_activity_at" - add_index "thredded_user_details", ["moderation_state", "moderation_state_changed_at"], name: "index_thredded_user_details_for_moderations" - add_index "thredded_user_details", ["user_id"], name: "index_thredded_user_details_on_user_id" - - create_table "thredded_user_messageboard_preferences", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "messageboard_id", null: false - t.boolean "follow_topics_on_mention", default: true, null: false - t.boolean "auto_follow_topics", default: false, null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_user_messageboard_preferences", ["user_id", "messageboard_id"], name: "thredded_user_messageboard_preferences_user_id_messageboard_id", unique: true - - create_table "thredded_user_post_notifications", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "post_id", null: false - t.datetime "notified_at", null: false - end - - add_index "thredded_user_post_notifications", ["post_id"], name: "index_thredded_user_post_notifications_on_post_id" - add_index "thredded_user_post_notifications", ["user_id", "post_id"], name: "index_thredded_user_post_notifications_on_user_id_and_post_id", unique: true - - create_table "thredded_user_preferences", force: :cascade do |t| - t.integer "user_id", null: false - t.boolean "follow_topics_on_mention", default: true, null: false - t.boolean "auto_follow_topics", default: false, null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "thredded_user_preferences", ["user_id"], name: "index_thredded_user_preferences_on_user_id" - - create_table "thredded_user_private_topic_read_states", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "postable_id", null: false - t.integer "page", default: 1, null: false - t.datetime "read_at", null: false - end - - add_index "thredded_user_private_topic_read_states", ["user_id", "postable_id"], name: "thredded_user_private_topic_read_states_user_postable", unique: true - - create_table "thredded_user_topic_follows", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "topic_id", null: false - t.datetime "created_at", null: false - t.integer "reason", limit: 1 - end - - add_index "thredded_user_topic_follows", ["user_id", "topic_id"], name: "thredded_user_topic_follows_user_topic", unique: true - - create_table "thredded_user_topic_read_states", force: :cascade do |t| - t.integer "user_id", null: false - t.integer "postable_id", null: false - t.integer "page", default: 1, null: false - t.datetime "read_at", null: false - end - - add_index "thredded_user_topic_read_states", ["user_id", "postable_id"], name: "thredded_user_topic_read_states_user_postable", unique: true - create_table "universes", force: :cascade do |t| t.string "name", null: false t.text "description" @@ -1066,8 +807,6 @@ ActiveRecord::Schema.define(version: 20170731010449) do t.integer "upload_bandwidth_kb", default: 50000 t.string "secure_code" t.boolean "fluid_preference" - t.string "username" - t.string "forum_admin", default: "f" end add_index "users", ["email"], name: "index_users_on_email", unique: true