test/dummy/db/schema.rb in poly_belongs_to-0.2.9 vs test/dummy/db/schema.rb in poly_belongs_to-0.3.0
- old
+ new
@@ -9,11 +9,11 @@
# 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: 20161209115212) do
+ActiveRecord::Schema.define(version: 20161210150343) do
create_table "address_books", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
@@ -35,19 +35,37 @@
t.datetime "updated_at"
end
add_index "alphas", ["delta_id"], name: "index_alphas_on_delta_id"
+ create_table "assemblies", force: :cascade do |t|
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
+ create_table "assemblies_parts", id: false, force: :cascade do |t|
+ t.integer "assembly_id", null: false
+ t.integer "part_id", null: false
+ end
+
+ add_index "assemblies_parts", ["assembly_id", "part_id"], name: "index_assemblies_parts_on_assembly_id_and_part_id"
+ add_index "assemblies_parts", ["part_id", "assembly_id"], name: "index_assemblies_parts_on_part_id_and_assembly_id"
+
create_table "beta", force: :cascade do |t|
t.string "content", limit: 255
t.integer "alpha_id"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "beta", ["alpha_id"], name: "index_beta_on_alpha_id"
+ create_table "big_companies", force: :cascade do |t|
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
create_table "capas", force: :cascade do |t|
t.string "content", limit: 255
t.integer "beta_id"
t.datetime "created_at"
t.datetime "updated_at"
@@ -109,10 +127,25 @@
t.datetime "updated_at"
end
add_index "geo_locations", ["address_id"], name: "index_geo_locations_on_address_id"
+ create_table "hmt_assemblies", force: :cascade do |t|
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
+ create_table "hmt_parts", force: :cascade do |t|
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
+ create_table "parts", force: :cascade do |t|
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
create_table "phones", force: :cascade do |t|
t.integer "phoneable_id"
t.string "phoneable_type", limit: 255
t.string "content", limit: 255
t.datetime "created_at", null: false
@@ -185,10 +218,13 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "work_orders", force: :cascade do |t|
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.integer "big_company_id"
end
+
+ add_index "work_orders", ["big_company_id"], name: "index_work_orders_on_big_company_id"
end