Mercurial > zeropaste
changeset 207:ee7829c7c2a2
Prepare for private pastes.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sat, 11 May 2013 22:37:31 +0900 |
parents | b14c688e1595 |
children | 953d284ec195 |
files | db/migrate/20130511133450_add_secret_to_pastes.rb db/schema.rb |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /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
--- 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