test/dummy/db/schema.rb in dread-0.0.7 vs test/dummy/db/schema.rb in dread-0.1.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: 20140918223342) do
+ActiveRecord::Schema.define(version: 20151013211307) do
create_table "account_settings", force: true do |t|
t.string "time_zone"
t.integer "country_id"
t.datetime "created_at"
@@ -33,10 +33,26 @@
t.string "content"
t.datetime "created_at"
t.datetime "updated_at"
end
+ create_table "companies", force: true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ create_table "company_organizations", force: true do |t|
+ t.integer "company_id"
+ t.integer "organization_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "company_organizations", ["company_id"], name: "index_company_organizations_on_company_id"
+ add_index "company_organizations", ["organization_id"], name: "index_company_organizations_on_organization_id"
+
create_table "countries", force: true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
end
@@ -46,10 +62,24 @@
t.integer "manager_id"
t.datetime "created_at"
t.datetime "updated_at"
end
+ create_table "headquarters", force: true do |t|
+ t.integer "company_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "headquarters", ["company_id"], name: "index_headquarters_on_company_id"
+
+ create_table "organizations", force: true do |t|
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "pictures", force: true do |t|
t.string "url"
t.integer "imageable_id"
t.string "imageable_type"
t.datetime "created_at"
@@ -72,10 +102,13 @@
create_table "users", force: true do |t|
t.string "name"
t.string "email"
t.datetime "created_at"
t.datetime "updated_at"
+ t.integer "company_id"
end
+
+ add_index "users", ["company_id"], name: "index_users_on_company_id"
create_table "wtf_ashtrays", force: true do |t|
t.string "color"
t.datetime "created_at"
t.datetime "updated_at"