correct schema and add index for photos_seeds

This commit is contained in:
Mackenzie Morgan committed 2016-12-02 23:17:01 -05:00
1 parent a3c8bc0586
commit c201200e9b
2 files changed
+3 -8

No files matched your search

@@ -4,5 +4,6 @@ class AddPhotosSeedsTable < ActiveRecord::Migration
t.integer :photo_id
t.integer :seed_id
end
add_index(:photos_seeds, [:seed_id, :photo_id])
end
end
+2 -8
View File
@@ -355,14 +355,6 @@ ActiveRecord::Schema.define(version: 20161201154922) do
t.integer "product_id"
end
create_table "photo_mappings", force: :cascade do |t|
t.integer "photo_id"
t.integer "object_id"
t.string "object_type"
end
add_index "photo_mappings", ["object_id", "photo_id"], name: "index_photo_mappings_on_object_id_and_photo_id", using: :btree
create_table "photos", force: :cascade do |t|
t.integer "owner_id", null: false
t.string "thumbnail_url", null: false
@@ -386,6 +378,8 @@ ActiveRecord::Schema.define(version: 20161201154922) do
t.integer "seed_id"
end
add_index "photos_seeds", ["seed_id", "photo_id"], name: "index_photos_seeds_on_seed_id_and_photo_id", using: :btree
create_table "plant_parts", force: :cascade do |t|
t.string "name"
t.datetime "created_at"