Mercurial > zeropaste
annotate db/schema.rb @ 445:d31511b722b5
Update gems
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 02 Mar 2017 11:58:37 +0900 |
parents | e34e0de34b65 |
children |
rev | line source |
---|---|
176
a9dba6a3008b
Initial work to add paste deletion.
Edho Arief <edho@myconan.net>
parents:
23
diff
changeset
|
1 # encoding: UTF-8 |
2 | 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 # | |
196
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
12 # It's strongly recommended that you check this file into your version control system. |
2 | 13 |
419
e34e0de34b65
Prevent creating stupid long misc fields
nanaya <me@myconan.net>
parents:
417
diff
changeset
|
14 ActiveRecord::Schema.define(version: 20150916161622) do |
2 | 15 |
417
080dd141898c
Add support for explicit highlighter languages
nanaya <me@myconan.net>
parents:
221
diff
changeset
|
16 create_table "pastes", force: :cascade do |t| |
196
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
17 t.string "ip", limit: 50, null: false |
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
18 t.text "paste", null: false |
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
19 t.string "paste_hash", limit: 150, null: false |
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
20 t.datetime "created_at", null: false |
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
21 t.datetime "updated_at", null: false |
419
e34e0de34b65
Prevent creating stupid long misc fields
nanaya <me@myconan.net>
parents:
417
diff
changeset
|
22 t.string "key", limit: 100 |
e34e0de34b65
Prevent creating stupid long misc fields
nanaya <me@myconan.net>
parents:
417
diff
changeset
|
23 t.string "secret", limit: 100 |
e34e0de34b65
Prevent creating stupid long misc fields
nanaya <me@myconan.net>
parents:
417
diff
changeset
|
24 t.string "language", limit: 100 |
2 | 25 end |
26 | |
196
8d465a93fcb4
Update the schema, too (with p.much nothing).
Edho Arief <edho@myconan.net>
parents:
176
diff
changeset
|
27 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree |
221 | 28 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree |
2 | 29 |
30 end |