Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12.  
  13. ActiveRecord::Schema.define(version: 20170430064036) do
  14.  
  15. # These are extensions that must be enabled in order to support this database
  16. enable_extension "plpgsql"
  17.  
  18. create_table "users", force: :cascade do |t|
  19. t.string "email", default: "", null: false
  20. t.string "encrypted_password", default: "", null: false
  21. t.string "username", default: "", null: false
  22. t.datetime "ts_created", null: false
  23. t.float "balance", default: 0.0, null: false
  24. t.integer "status_id", default: 0, null: false
  25. t.float "balance_hold", default: 0.0, null: false
  26. t.integer "unsubscribe", default: 0, null: false
  27. t.string "api_password", default: ""
  28. t.string "comp_name", default: ""
  29. t.string "comp_site", default: ""
  30. t.string "lang", default: ""
  31. t.string "source", default: ""
  32. t.integer "sub", default: 0
  33. t.boolean "approved", default: false
  34. t.float "percent", default: 0.0
  35. t.integer "admin_id", default: 0
  36. t.boolean "net_flag", default: false
  37. t.string "reset_password_token"
  38. t.datetime "reset_password_sent_at"
  39. t.datetime "remember_created_at"
  40. t.integer "sign_in_count", default: 0, null: false
  41. t.datetime "current_sign_in_at"
  42. t.datetime "last_sign_in_at"
  43. t.inet "current_sign_in_ip"
  44. t.inet "last_sign_in_ip"
  45. t.string "confirmation_token"
  46. t.datetime "confirmed_at"
  47. t.datetime "confirmation_sent_at"
  48. t.string "unconfirmed_email"
  49. t.integer "failed_attempts", default: 0, null: false
  50. t.string "unlock_token"
  51. t.datetime "locked_at"
  52. t.datetime "created_at", null: false
  53. t.datetime "updated_at", null: false
  54. t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
  55. t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
  56. t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  57. t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true, using: :btree
  58. t.index ["username"], name: "index_users_on_username", unique: true, using: :btree
  59. end
  60.  
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement