Mercurial > zeropaste
comparison db/schema.rb @ 207:ee7829c7c2a2
Prepare for private pastes.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sat, 11 May 2013 22:37:31 +0900 |
parents | 8d465a93fcb4 |
children | 0f9f29274663 |
comparison
equal
deleted
inserted
replaced
206:b14c688e1595 | 207:ee7829c7c2a2 |
---|---|
9 # from scratch. The latter is a flawed and unsustainable approach (the more 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). | 10 # you'll amass, the slower it'll run and the greater likelihood for issues). |
11 # | 11 # |
12 # It's strongly recommended that you check this file into your version control system. | 12 # It's strongly recommended that you check this file into your version control system. |
13 | 13 |
14 ActiveRecord::Schema.define(version: 20130201150322) do | 14 ActiveRecord::Schema.define(version: 20130511133450) do |
15 | 15 |
16 create_table "pastes", force: true do |t| | 16 create_table "pastes", force: true do |t| |
17 t.string "ip", limit: 50, null: false | 17 t.string "ip", limit: 50, null: false |
18 t.text "paste", null: false | 18 t.text "paste", null: false |
19 t.string "paste_hash", limit: 150, null: false | 19 t.string "paste_hash", limit: 150, null: false |
20 t.datetime "created_at", null: false | 20 t.datetime "created_at", null: false |
21 t.datetime "updated_at", null: false | 21 t.datetime "updated_at", null: false |
22 t.string "key" | 22 t.string "key" |
23 t.string "secret" | |
23 end | 24 end |
24 | 25 |
25 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree | 26 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree |
26 | 27 |
27 end | 28 end |