test/dummy/db/schema.rb in proclaim-0.4.0 vs test/dummy/db/schema.rb in proclaim-0.5.0
- old
+ new
@@ -9,12 +9,25 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20150123115226) do
+ActiveRecord::Schema.define(version: 20150213015850) do
+ 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 "proclaim_comment_hierarchies", id: false, force: :cascade do |t|
t.integer "ancestor_id", null: false
t.integer "descendant_id", null: false
t.integer "generations", null: false
end
@@ -48,12 +61,14 @@
t.text "body", default: "", null: false
t.string "state", default: "draft", null: false
t.datetime "published_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.string "slug"
end
add_index "proclaim_posts", ["author_id"], name: "index_proclaim_posts_on_author_id"
+ add_index "proclaim_posts", ["slug"], name: "index_proclaim_posts_on_slug", unique: true
add_index "proclaim_posts", ["state"], name: "index_proclaim_posts_on_state"
create_table "proclaim_subscriptions", force: :cascade do |t|
t.integer "post_id"
t.string "email"