comparison db/schema.rb @ 221:0f9f29274663

Add index to pastes.secret
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 12:25:27 +0900
parents ee7829c7c2a2
children 080dd141898c
comparison
equal deleted inserted replaced
220:183e8560a337 221:0f9f29274663
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: 20130511133450) do 14 ActiveRecord::Schema.define(version: 20130512032335) 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
22 t.string "key" 22 t.string "key"
23 t.string "secret" 23 t.string "secret"
24 end 24 end
25 25
26 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
27 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree
27 28
28 end 29 end