Mercurial > zeropaste
changeset 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 | cb30b72e8ded |
children | af80541dc915 |
files | db/schema.rb |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/db/schema.rb Tue May 07 23:59:17 2013 +0900 +++ b/db/schema.rb Wed May 08 00:00:23 2013 +0900 @@ -9,19 +9,19 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended to check this file into your version control system. +# It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130201150322) do +ActiveRecord::Schema.define(version: 20130201150322) do - create_table "pastes", :force => true do |t| - t.string "ip", :limit => 50, :null => false - t.text "paste", :null => false - t.string "paste_hash", :limit => 150, :null => false - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + create_table "pastes", force: true do |t| + t.string "ip", limit: 50, null: false + t.text "paste", null: false + t.string "paste_hash", limit: 150, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "key" end - add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true + add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree end