comparison db/schema.rb @ 417:080dd141898c

Add support for explicit highlighter languages
author nanaya <me@myconan.net>
date Mon, 14 Sep 2015 14:50:35 +0900
parents 0f9f29274663
children e34e0de34b65
comparison
equal deleted inserted replaced
416:c4c8214fb0b2 417:080dd141898c
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: 20130512032335) do 14 ActiveRecord::Schema.define(version: 20150914054154) do
15 15
16 create_table "pastes", force: true 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"
23 t.string "secret" 23 t.string "secret"
24 t.string "language"
24 end 25 end
25 26
26 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
27 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree 28 add_index "pastes", ["secret"], name: "index_pastes_on_secret", using: :btree
28 29