spec/dummy/db/schema.rb in magic_addresses-0.0.12 vs spec/dummy/db/schema.rb in magic_addresses-0.0.13

- old
+ new

@@ -9,12 +9,18 @@ # 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: 20150225220219) do +ActiveRecord::Schema.define(version: 20151118102658) do + create_table "companies", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "mgca_address_translations", force: :cascade do |t| t.integer "mgca_address_id", null: false t.string "locale", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false @@ -29,29 +35,39 @@ t.text "fetch_address" t.string "street_default" t.string "street_number" t.string "street_additional" t.integer "zipcode" - t.boolean "default" t.float "longitude" t.float "latitude" t.integer "subdistrict_id" t.integer "district_id" t.integer "city_id" t.integer "state_id" t.integer "country_id" - t.integer "owner_id" - t.string "owner_type" - 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.string "status", default: "new" end add_index "mgca_addresses", ["city_id"], name: "index_mgca_addresses_on_city_id" add_index "mgca_addresses", ["country_id"], name: "index_mgca_addresses_on_country_id" add_index "mgca_addresses", ["district_id"], name: "index_mgca_addresses_on_district_id" - add_index "mgca_addresses", ["owner_type", "owner_id"], name: "index_mgca_addresses_on_owner_type_and_owner_id" add_index "mgca_addresses", ["state_id"], name: "index_mgca_addresses_on_state_id" add_index "mgca_addresses", ["subdistrict_id"], name: "index_mgca_addresses_on_subdistrict_id" + + create_table "mgca_addressibles", force: :cascade do |t| + t.boolean "default" + t.string "name" + t.integer "owner_id" + t.string "owner_type" + t.integer "address_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_index "mgca_addressibles", ["address_id"], name: "index_mgca_addressibles_on_address_id" + add_index "mgca_addressibles", ["owner_type", "owner_id"], name: "index_mgca_addressibles_on_owner_type_and_owner_id" create_table "mgca_cities", force: :cascade do |t| t.string "default_name" t.string "short_name" t.string "fsm_state", default: "new"