comparison db/schema.rb @ 196:8d465a93fcb4

Update the schema, too (with p.much nothing).
author Edho Arief <edho@myconan.net>
date Wed, 08 May 2013 00:00:23 +0900
parents a9dba6a3008b
children ee7829c7c2a2
comparison
equal deleted inserted replaced
195:cb30b72e8ded 196:8d465a93fcb4
7 # database schema. If you need to create the application database on another 7 # database schema. If you need to create the application database on another
8 # system, you should be using db:schema:load, not running all the migrations 8 # system, you should be using db:schema:load, not running all the migrations
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 to 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: 20130201150322) 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 end 23 end
24 24
25 add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true 25 add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree
26 26
27 end 27 end