annotate db/schema.rb @ 187:f0ffe17469a1

Set margin for markdown tab content to 0.
author Edho Arief <edho@myconan.net>
date Sat, 23 Feb 2013 13:24:40 +0900
parents a9dba6a3008b
children 8d465a93fcb4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
176
a9dba6a3008b Initial work to add paste deletion.
Edho Arief <edho@myconan.net>
parents: 23
diff changeset
1 # encoding: UTF-8
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2 # This file is auto-generated from the current state of the database. Instead
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 # of editing this file, please use the migrations feature of Active Record to
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 # incrementally modify your database, and then regenerate this schema definition.
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 #
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 # Note that this schema.rb definition is the authoritative source for your
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 # database schema. If you need to create the application database on another
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 # system, you should be using db:schema:load, not running all the migrations
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 # from scratch. The latter is a flawed and unsustainable approach (the more migrations
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 # you'll amass, the slower it'll run and the greater likelihood for issues).
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 #
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 # It's strongly recommended to check this file into your version control system.
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13
176
a9dba6a3008b Initial work to add paste deletion.
Edho Arief <edho@myconan.net>
parents: 23
diff changeset
14 ActiveRecord::Schema.define(:version => 20130201150322) do
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
15
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
16 create_table "pastes", :force => true do |t|
21
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
17 t.string "ip", :limit => 50, :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
18 t.text "paste", :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
19 t.string "paste_hash", :limit => 150, :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
20 t.datetime "created_at", :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
21 t.datetime "updated_at", :null => false
176
a9dba6a3008b Initial work to add paste deletion.
Edho Arief <edho@myconan.net>
parents: 23
diff changeset
22 t.string "key"
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
23 end
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
24
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
25 add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
26
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
27 end