Commit 75c9c68c18f287473e49b1f8e9282c1062d48897
1 parent
56318a24
Exists in
spb-stable
and in
3 other branches
Rebuild schame from migrations
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
21 additions
and
17 deletions
Show diff stats
db/schema.rb
... | ... | @@ -278,17 +278,20 @@ ActiveRecord::Schema.define(version: 20140305193308) do |
278 | 278 | t.datetime "created_at" |
279 | 279 | end |
280 | 280 | |
281 | + add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id", using: :btree | |
282 | + add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree | |
283 | + | |
281 | 284 | create_table "tags", force: true do |t| |
282 | 285 | t.string "name" |
283 | 286 | end |
284 | 287 | |
285 | 288 | create_table "users", force: true do |t| |
286 | - t.string "email", default: "", null: false | |
287 | - t.string "encrypted_password", limit: 128, default: "", null: false | |
289 | + t.string "email", default: "", null: false | |
290 | + t.string "encrypted_password", default: "", null: false | |
288 | 291 | t.string "reset_password_token" |
289 | 292 | t.datetime "reset_password_sent_at" |
290 | 293 | t.datetime "remember_created_at" |
291 | - t.integer "sign_in_count", default: 0 | |
294 | + t.integer "sign_in_count", default: 0 | |
292 | 295 | t.datetime "current_sign_in_at" |
293 | 296 | t.datetime "last_sign_in_at" |
294 | 297 | t.string "current_sign_in_ip" |
... | ... | @@ -296,40 +299,41 @@ ActiveRecord::Schema.define(version: 20140305193308) do |
296 | 299 | t.datetime "created_at" |
297 | 300 | t.datetime "updated_at" |
298 | 301 | t.string "name" |
299 | - t.boolean "admin", default: false, null: false | |
300 | - t.integer "projects_limit", default: 10 | |
301 | - t.string "skype", default: "", null: false | |
302 | - t.string "linkedin", default: "", null: false | |
303 | - t.string "twitter", default: "", null: false | |
302 | + t.boolean "admin", default: false, null: false | |
303 | + t.integer "projects_limit", default: 10 | |
304 | + t.string "skype", default: "", null: false | |
305 | + t.string "linkedin", default: "", null: false | |
306 | + t.string "twitter", default: "", null: false | |
304 | 307 | t.string "authentication_token" |
305 | - t.integer "theme_id", default: 1, null: false | |
308 | + t.integer "theme_id", default: 1, null: false | |
306 | 309 | t.string "bio" |
307 | - t.integer "failed_attempts", default: 0 | |
310 | + t.integer "failed_attempts", default: 0 | |
308 | 311 | t.datetime "locked_at" |
309 | 312 | t.string "extern_uid" |
310 | 313 | t.string "provider" |
311 | 314 | t.string "username" |
312 | - t.boolean "can_create_group", default: true, null: false | |
313 | - t.boolean "can_create_team", default: true, null: false | |
315 | + t.boolean "can_create_group", default: true, null: false | |
316 | + t.boolean "can_create_team", default: true, null: false | |
314 | 317 | t.string "state" |
315 | - t.integer "color_scheme_id", default: 1, null: false | |
316 | - t.integer "notification_level", default: 1, null: false | |
318 | + t.integer "color_scheme_id", default: 1, null: false | |
319 | + t.integer "notification_level", default: 1, null: false | |
317 | 320 | t.datetime "password_expires_at" |
318 | 321 | t.integer "created_by_id" |
322 | + t.datetime "last_credential_check_at" | |
319 | 323 | t.string "avatar" |
320 | 324 | t.string "confirmation_token" |
321 | 325 | t.datetime "confirmed_at" |
322 | 326 | t.datetime "confirmation_sent_at" |
323 | 327 | t.string "unconfirmed_email" |
324 | - t.boolean "hide_no_ssh_key", default: false | |
325 | - t.string "website_url", default: "", null: false | |
326 | - t.datetime "last_credential_check_at" | |
328 | + t.boolean "hide_no_ssh_key", default: false | |
329 | + t.string "website_url", default: "", null: false | |
327 | 330 | end |
328 | 331 | |
329 | 332 | add_index "users", ["admin"], name: "index_users_on_admin", using: :btree |
330 | 333 | add_index "users", ["authentication_token"], name: "index_users_on_authentication_token", unique: true, using: :btree |
331 | 334 | add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree |
332 | 335 | add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree |
336 | + add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree | |
333 | 337 | add_index "users", ["name"], name: "index_users_on_name", using: :btree |
334 | 338 | add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree |
335 | 339 | add_index "users", ["username"], name: "index_users_on_username", using: :btree | ... | ... |