Mercurial > zeropaste
comparison db/schema.rb @ 21:3c31c0beb9c2
Set proper limit.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Wed, 05 Sep 2012 14:31:31 +0700 |
parents | 42de15334db1 |
children | f5d2f373770b |
comparison
equal
deleted
inserted
replaced
20:dd3472e48289 | 21:3c31c0beb9c2 |
---|---|
8 # from scratch. The latter is a flawed and unsustainable approach (the more 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). | 9 # you'll amass, the slower it'll run and the greater likelihood for issues). |
10 # | 10 # |
11 # It's strongly recommended to check this file into your version control system. | 11 # It's strongly recommended to check this file into your version control system. |
12 | 12 |
13 ActiveRecord::Schema.define(:version => 20120826182012) do | 13 ActiveRecord::Schema.define(:version => 20120905072325) do |
14 | 14 |
15 create_table "pastes", :force => true do |t| | 15 create_table "pastes", :force => true do |t| |
16 t.string "ip", :null => false | 16 t.string "ip", :limit => 50, :null => false |
17 t.text "paste", :null => false | 17 t.text "paste", :null => false |
18 t.string "paste_hash", :null => false | 18 t.string "paste_hash", :limit => 150, :null => false |
19 t.datetime "created_at", :null => false | 19 t.datetime "created_at", :null => false |
20 t.datetime "updated_at", :null => false | 20 t.datetime "updated_at", :null => false |
21 end | 21 end |
22 | 22 |
23 add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true | 23 add_index "pastes", ["ip", "paste_hash"], :name => "index_pastes_on_ip_and_hash", :unique => true |
24 | 24 |
25 end | 25 end |