schema.rb 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ActiveRecord::Schema.define(version: 20180110004149) do
  13. # These are extensions that must be enabled in order to support this database
  14. enable_extension "plpgsql"
  15. create_table "authorizations", id: :serial, force: :cascade do |t|
  16. t.string "provider"
  17. t.string "uid"
  18. t.integer "user_id"
  19. t.string "token"
  20. t.string "secret"
  21. t.datetime "created_at", null: false
  22. t.datetime "updated_at", null: false
  23. t.string "profile_url", default: "", null: false
  24. t.string "display_name", default: "", null: false
  25. t.index ["provider", "uid"], name: "index_authorizations_on_provider_and_uid", unique: true
  26. end
  27. create_table "mastodon_clients", id: :serial, force: :cascade do |t|
  28. t.string "domain"
  29. t.string "client_id"
  30. t.string "client_secret"
  31. t.datetime "created_at", null: false
  32. t.datetime "updated_at", null: false
  33. t.string "client_token"
  34. t.index ["domain"], name: "index_mastodon_clients_on_domain", unique: true
  35. end
  36. create_table "users", id: :serial, force: :cascade do |t|
  37. t.datetime "created_at", null: false
  38. t.datetime "updated_at", null: false
  39. end
  40. end