comparison db/schema.rb @ 176:a9dba6a3008b

Initial work to add paste deletion.
author Edho Arief <edho@myconan.net>
date Fri, 01 Feb 2013 22:24:08 +0700
parents f5d2f373770b
children 8d465a93fcb4
comparison
equal deleted inserted replaced
175:e4a39071d132 176:a9dba6a3008b
1 # encoding: UTF-8
1 # This file is auto-generated from the current state of the database. Instead 2 # This file is auto-generated from the current state of the database. Instead
2 # of editing this file, please use the migrations feature of Active Record to 3 # of editing this file, please use the migrations feature of Active Record to
3 # incrementally modify your database, and then regenerate this schema definition. 4 # incrementally modify your database, and then regenerate this schema definition.
4 # 5 #
5 # Note that this schema.rb definition is the authoritative source for your 6 # Note that this schema.rb definition is the authoritative source for your
8 # 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
9 # 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).
10 # 11 #
11 # It's strongly recommended to check this file into your version control system. 12 # It's strongly recommended to check this file into your version control system.
12 13
13 ActiveRecord::Schema.define(:version => 20120905074204) do 14 ActiveRecord::Schema.define(:version => 20130201150322) do
14 15
15 create_table "pastes", :force => true do |t| 16 create_table "pastes", :force => true do |t|
16 t.string "ip", :limit => 50, :null => false 17 t.string "ip", :limit => 50, :null => false
17 t.text "paste", :null => false 18 t.text "paste", :null => false
18 t.string "paste_hash", :limit => 150, :null => false 19 t.string "paste_hash", :limit => 150, :null => false
19 t.datetime "created_at", :null => false 20 t.datetime "created_at", :null => false
20 t.datetime "updated_at", :null => false 21 t.datetime "updated_at", :null => false
22 t.string "key"
21 end 23 end
22 24
23 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
24 26
25 end 27 end