comparison db/schema.rb @ 2:42de15334db1

Added the pastes.
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 11:28:23 -0700
parents
children 3c31c0beb9c2
comparison
equal deleted inserted replaced
1:49c0949ee47e 2:42de15334db1
1 # 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 # incrementally modify your database, and then regenerate this schema definition.
4 #
5 # Note that this schema.rb definition is the authoritative source for your
6 # database schema. If you need to create the application database on another
7 # system, you should be using db:schema:load, not running all the migrations
8 # 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 #
11 # It's strongly recommended to check this file into your version control system.
12
13 ActiveRecord::Schema.define(:version => 20120826182012) do
14
15 create_table "pastes", :force => true do |t|
16 t.string "ip", :null => false
17 t.text "paste", :null => false
18 t.string "paste_hash", :null => false
19 t.datetime "created_at", :null => false
20 t.datetime "updated_at", :null => false
21 end
22
23 add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true
24
25 end