# HG changeset patch # User Edho Arief # Date 1368279451 -32400 # Node ID ee7829c7c2a28cf29527ad7796cb7836b5af4a85 # Parent b14c688e15956e92996460791a005c38b9e7c21c Prepare for private pastes. diff -r b14c688e1595 -r ee7829c7c2a2 db/migrate/20130511133450_add_secret_to_pastes.rb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/db/migrate/20130511133450_add_secret_to_pastes.rb Sat May 11 22:37:31 2013 +0900 @@ -0,0 +1,5 @@ +class AddSecretToPastes < ActiveRecord::Migration + def change + add_column :pastes, :secret, :string + end +end diff -r b14c688e1595 -r ee7829c7c2a2 db/schema.rb --- a/db/schema.rb Wed May 08 01:26:28 2013 +0900 +++ b/db/schema.rb Sat May 11 22:37:31 2013 +0900 @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20130201150322) do +ActiveRecord::Schema.define(version: 20130511133450) do create_table "pastes", force: true do |t| t.string "ip", limit: 50, null: false @@ -20,6 +20,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "key" + t.string "secret" end add_index "pastes", ["ip", "paste_hash"], name: "index_pastes_on_ip_and_hash", unique: true, using: :btree