Commit bfaf133d4ab42e9125372c3d391bbbf991201d95
1 parent
8b945809
Exists in
staging
and in
12 other branches
Updates schema
Showing
1 changed file
with
19 additions
and
1 deletions
Show diff stats
db/schema.rb
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | # |
12 | 12 | # It's strongly recommended that you check this file into your version control system. |
13 | 13 | |
14 | -ActiveRecord::Schema.define(version: 20160422163123) do | |
14 | +ActiveRecord::Schema.define(version: 20160608123748) do | |
15 | 15 | |
16 | 16 | # These are extensions that must be enabled in order to support this database |
17 | 17 | enable_extension "plpgsql" |
... | ... | @@ -274,6 +274,14 @@ ActiveRecord::Schema.define(version: 20160422163123) do |
274 | 274 | add_index "chat_messages", ["from_id"], name: "index_chat_messages_on_from_id", using: :btree |
275 | 275 | add_index "chat_messages", ["to_id"], name: "index_chat_messages_on_to_id", using: :btree |
276 | 276 | |
277 | + create_table "circles", force: :cascade do |t| | |
278 | + t.string "name" | |
279 | + t.integer "person_id" | |
280 | + t.string "profile_type", null: false | |
281 | + end | |
282 | + | |
283 | + add_index "circles", ["person_id", "name"], name: "circles_composite_key_index", unique: true, using: :btree | |
284 | + | |
277 | 285 | create_table "comments", force: :cascade do |t| |
278 | 286 | t.string "title" |
279 | 287 | t.text "body" |
... | ... | @@ -639,6 +647,15 @@ ActiveRecord::Schema.define(version: 20160422163123) do |
639 | 647 | add_index "profiles", ["user_id", "type"], name: "index_profiles_on_user_id_and_type", using: :btree |
640 | 648 | add_index "profiles", ["user_id"], name: "index_profiles_on_user_id", using: :btree |
641 | 649 | |
650 | + create_table "profiles_circles", force: :cascade do |t| | |
651 | + t.integer "profile_id" | |
652 | + t.integer "circle_id" | |
653 | + t.datetime "created_at" | |
654 | + t.datetime "updated_at" | |
655 | + end | |
656 | + | |
657 | + add_index "profiles_circles", ["profile_id", "circle_id"], name: "profiles_circles_composite_key_index", unique: true, using: :btree | |
658 | + | |
642 | 659 | create_table "qualifier_certifiers", force: :cascade do |t| |
643 | 660 | t.integer "qualifier_id" |
644 | 661 | t.integer "certifier_id" |
... | ... | @@ -860,4 +877,5 @@ ActiveRecord::Schema.define(version: 20160422163123) do |
860 | 877 | add_index "votes", ["voteable_id", "voteable_type"], name: "fk_voteables", using: :btree |
861 | 878 | add_index "votes", ["voter_id", "voter_type"], name: "fk_voters", using: :btree |
862 | 879 | |
880 | + add_foreign_key "profiles_circles", "circles", on_delete: :nullify | |
863 | 881 | end | ... | ... |