diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 0279d8e..192c9c1 100644 --- a/db/schema.rb +++ b/db/schema.rb | |||
@@ -10,7 +10,7 @@ | |||
10 | # | 10 | # |
11 | # It's strongly recommended that you check this file into your version control system. | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 | ||
13 | ActiveRecord::Schema.define(version: 20180704144707) do | 13 | ActiveRecord::Schema.define(version: 20180707142420) do |
14 | 14 | ||
15 | create_table "blogs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| | 15 | create_table "blogs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin" do |t| |
16 | t.string "title" | 16 | t.string "title" |
@@ -238,6 +238,31 @@ ActiveRecord::Schema.define(version: 20180704144707) do | |||
238 | t.datetime "updated_at", null: false | 238 | t.datetime "updated_at", null: false |
239 | end | 239 | end |
240 | 240 | ||
241 | create_table "taggings", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | ||
242 | t.integer "tag_id" | ||
243 | t.string "taggable_type" | ||
244 | t.integer "taggable_id" | ||
245 | t.string "tagger_type" | ||
246 | t.integer "tagger_id" | ||
247 | t.string "context", limit: 128 | ||
248 | t.datetime "created_at" | ||
249 | t.index ["context"], name: "index_taggings_on_context" | ||
250 | t.index ["tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type"], name: "taggings_idx", unique: true | ||
251 | t.index ["tag_id"], name: "index_taggings_on_tag_id" | ||
252 | t.index ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context" | ||
253 | t.index ["taggable_id", "taggable_type", "tagger_id", "context"], name: "taggings_idy" | ||
254 | t.index ["taggable_id"], name: "index_taggings_on_taggable_id" | ||
255 | t.index ["taggable_type"], name: "index_taggings_on_taggable_type" | ||
256 | t.index ["tagger_id", "tagger_type"], name: "index_taggings_on_tagger_id_and_tagger_type" | ||
257 | t.index ["tagger_id"], name: "index_taggings_on_tagger_id" | ||
258 | end | ||
259 | |||
260 | create_table "tags", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | ||
261 | t.string "name", limit: 255, collation: "utf8_bin" | ||
262 | t.integer "taggings_count", default: 0 | ||
263 | t.index ["name"], name: "index_tags_on_name", unique: true | ||
264 | end | ||
265 | |||
241 | create_table "updates", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | 266 | create_table "updates", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| |
242 | t.bigint "stream_id" | 267 | t.bigint "stream_id" |
243 | t.text "body" | 268 | t.text "body" |