annotate db/schema.rb @ 83:ae360c3b0bb0

Disable explain when using jruby because it's not supported. The patch for this support exist but for some reason still not included in latest release of the jdbc adapter. Reference: https://github.com/jruby/activerecord-jdbc-adapter/pull/206
author Edho Arief <edho@myconan.net>
date Mon, 15 Oct 2012 03:45:18 -0700
parents f5d2f373770b
children a9dba6a3008b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 # 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
2 # 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
3 # incrementally modify your database, and then regenerate this schema definition.
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 #
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 # Note that this schema.rb definition is the authoritative source for your
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 # database schema. If you need to create the application database on another
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7 # 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
8 # 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
9 # 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
10 #
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 # 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
12
23
f5d2f373770b Reenforce not null.
Edho Arief <edho@myconan.net>
parents: 21
diff changeset
13 ActiveRecord::Schema.define(:version => 20120905074204) do
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
14
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
15 create_table "pastes", :force => true do |t|
21
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
16 t.string "ip", :limit => 50, :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
17 t.text "paste", :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
18 t.string "paste_hash", :limit => 150, :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
19 t.datetime "created_at", :null => false
3c31c0beb9c2 Set proper limit.
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
20 t.datetime "updated_at", :null => false
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21 end
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
22
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
23 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
24
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
25 end