Mercurial > zeropaste
diff 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 |
line wrap: on
line diff
--- a/db/schema.rb Sun May 12 12:05:08 2013 +0900 +++ b/db/schema.rb Sun May 12 12:25:27 2013 +0900 @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20130511133450) do +ActiveRecord::Schema.define(version: 20130512032335) do create_table "pastes", force: true do |t| t.string "ip", limit: 50, null: false @@ -24,5 +24,6 @@ end add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree + add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree end