comparison db/schema.rb @ 419:e34e0de34b65

Prevent creating stupid long misc fields
author nanaya <me@myconan.net>
date Thu, 17 Sep 2015 01:23:02 +0900
parents 080dd141898c
children
comparison
equal deleted inserted replaced
418:a69dd2d37950 419:e34e0de34b65
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: 20150914054154) do 14 ActiveRecord::Schema.define(version: 20150916161622) do
15 15
16 create_table "pastes", force: :cascade do |t| 16 create_table "pastes", force: :cascade 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", limit: 100
23 t.string "secret" 23 t.string "secret", limit: 100
24 t.string "language" 24 t.string "language", limit: 100
25 end 25 end
26 26
27 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree 27 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree
28 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree 28 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree
29 29