You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.0 KiB

8 years ago
  1. # encoding: UTF-8
  2. # This file is auto-generated from the current state of the database. Instead
  3. # of editing this file, please use the migrations feature of Active Record to
  4. # incrementally modify your database, and then regenerate this schema definition.
  5. #
  6. # Note that this schema.rb definition is the authoritative source for your
  7. # database schema. If you need to create the application database on another
  8. # system, you should be using db:schema:load, not running all the migrations
  9. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  10. # you'll amass, the slower it'll run and the greater likelihood for issues).
  11. #
  12. # It's strongly recommended that you check this file into your version control system.
  13. ActiveRecord::Schema.define(version: 20160220211917) do
  14. # These are extensions that must be enabled in order to support this database
  15. enable_extension "plpgsql"
  16. create_table "accounts", force: :cascade do |t|
  17. t.string "username", default: "", null: false
  18. t.string "domain"
  19. t.string "verify_token", default: "", null: false
  20. t.string "secret", default: "", null: false
  21. t.text "private_key"
  22. t.text "public_key", default: "", null: false
  23. t.string "remote_url", default: "", null: false
  24. t.string "salmon_url", default: "", null: false
  25. t.string "hub_url", default: "", null: false
  26. t.datetime "created_at", null: false
  27. t.datetime "updated_at", null: false
  28. end
  29. add_index "accounts", ["username", "domain"], name: "index_accounts_on_username_and_domain", unique: true, using: :btree
  30. create_table "statuses", force: :cascade do |t|
  31. t.string "uri", default: "", null: false
  32. t.integer "account_id", null: false
  33. t.text "text", default: "", null: false
  34. t.datetime "created_at", null: false
  35. t.datetime "updated_at", null: false
  36. end
  37. add_index "statuses", ["uri"], name: "index_statuses_on_uri", unique: true, using: :btree
  38. end