Commit e3127ef2

mo khan <mo@mokhan.ca>
2014-07-05 23:06:26
drop unused creations_categories table.
1 parent 8256820
db/migrate/20140705230409_drop_table_creations_categories.rb
@@ -0,0 +1,5 @@
+class DropTableCreationsCategories < ActiveRecord::Migration
+  def change
+    drop_table :creations_categories
+  end
+end
db/schema.rb
@@ -11,7 +11,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 20140705225150) do
+ActiveRecord::Schema.define(version: 20140705230409) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -74,14 +74,6 @@ ActiveRecord::Schema.define(version: 20140705225150) do
   add_index "creations", ["created_at"], name: "index_creations_on_created_at", using: :btree
   add_index "creations", ["user_id"], name: "index_creations_on_user_id", using: :btree
 
-  create_table "creations_categories", id: false, force: true do |t|
-    t.integer "creation_id"
-    t.integer "category_id"
-  end
-
-  add_index "creations_categories", ["category_id", "creation_id"], name: "index_creations_categories_on_category_id_and_creation_id", using: :btree
-  add_index "creations_categories", ["creation_id", "category_id"], name: "index_creations_categories_on_creation_id_and_category_id", using: :btree
-
   create_table "delayed_jobs", force: true do |t|
     t.integer  "priority",   default: 0
     t.integer  "attempts",   default: 0