spec/dummy/db/schema.rb in social_networking-0.11.8 vs spec/dummy/db/schema.rb in social_networking-0.12.0

- old
+ new

@@ -40,14 +40,13 @@ t.string "text", limit: 1000, null: false t.integer "item_id", null: false t.string "item_type", null: false t.datetime "created_at" t.datetime "updated_at" + t.index ["item_id", "item_type"], name: "index_social_networking_comments_on_item_id_and_item_type", using: :btree end - add_index "social_networking_comments", ["item_id", "item_type"], name: "index_social_networking_comments_on_item_id_and_item_type", using: :btree - create_table "social_networking_goals", force: :cascade do |t| t.string "description", limit: 1000, null: false t.integer "participant_id", null: false t.date "due_on" t.datetime "created_at" @@ -60,47 +59,43 @@ t.integer "participant_id", null: false t.integer "item_id", null: false t.string "item_type", null: false t.datetime "created_at" t.datetime "updated_at" + t.index ["item_id", "item_type"], name: "index_social_networking_likes_on_item_id_and_item_type", using: :btree + t.index ["participant_id", "item_id", "item_type"], name: "one_like_per_item", unique: true, using: :btree end - add_index "social_networking_likes", ["item_id", "item_type"], name: "index_social_networking_likes_on_item_id_and_item_type", using: :btree - add_index "social_networking_likes", ["participant_id", "item_id", "item_type"], name: "one_like_per_item", unique: true, using: :btree - create_table "social_networking_nudges", force: :cascade do |t| t.integer "initiator_id", null: false t.integer "recipient_id", null: false t.datetime "created_at" t.datetime "updated_at" + t.index ["created_at"], name: "index_social_networking_nudges_on_created_at", using: :btree + t.index ["initiator_id"], name: "index_social_networking_nudges_on_initiator_id", using: :btree + t.index ["recipient_id"], name: "index_social_networking_nudges_on_recipient_id", using: :btree end - add_index "social_networking_nudges", ["created_at"], name: "index_social_networking_nudges_on_created_at", using: :btree - add_index "social_networking_nudges", ["initiator_id"], name: "index_social_networking_nudges_on_initiator_id", using: :btree - add_index "social_networking_nudges", ["recipient_id"], name: "index_social_networking_nudges_on_recipient_id", using: :btree - create_table "social_networking_on_the_mind_statements", force: :cascade do |t| t.string "description", limit: 1000, null: false t.integer "participant_id", null: false t.datetime "created_at" t.datetime "updated_at" + t.index ["created_at"], name: "on_the_mind_created_at", using: :btree + t.index ["participant_id"], name: "on_the_mind_participant", using: :btree end - add_index "social_networking_on_the_mind_statements", ["created_at"], name: "on_the_mind_created_at", using: :btree - add_index "social_networking_on_the_mind_statements", ["participant_id"], name: "on_the_mind_participant", using: :btree - create_table "social_networking_profile_answers", force: :cascade do |t| t.integer "social_networking_profile_question_id", null: false t.integer "order" t.string "answer_text", limit: 1000, null: false t.datetime "created_at" t.datetime "updated_at" t.integer "social_networking_profile_id" + t.index ["social_networking_profile_id", "social_networking_profile_question_id"], name: "profile_answers_unique", unique: true, using: :btree end - add_index "social_networking_profile_answers", ["social_networking_profile_id", "social_networking_profile_question_id"], name: "profile_answers_unique", unique: true, using: :btree - create_table "social_networking_profile_questions", force: :cascade do |t| t.string "question_text", null: false t.datetime "created_at" t.datetime "updated_at" end @@ -120,13 +115,12 @@ t.datetime "updated_at" t.boolean "is_public", default: true, null: false t.string "action_type", default: "", null: false t.string "item_label" t.integer "participant_id" + t.index ["created_at"], name: "index_social_networking_shared_items_on_created_at", using: :btree + t.index ["participant_id"], name: "index_social_networking_shared_items_on_participant_id", using: :btree end - - add_index "social_networking_shared_items", ["created_at"], name: "index_social_networking_shared_items_on_created_at", using: :btree - add_index "social_networking_shared_items", ["participant_id"], name: "index_social_networking_shared_items_on_participant_id", using: :btree add_foreign_key "social_networking_comments", "participants", name: "fk_comments_participants" add_foreign_key "social_networking_goals", "participants", name: "fk_goals_participants" add_foreign_key "social_networking_likes", "participants", name: "fk_likes_participants" add_foreign_key "social_networking_nudges", "participants", column: "initiator_id", name: "fk_nudges_initiators"