Mercurial > zeropaste
comparison db/migrate/20120905072325_set_limit_on_paste.rb @ 333:682abad78313
Documentation and line length.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 14 Apr 2014 17:32:12 +0900 |
parents | 3c31c0beb9c2 |
children | 4608d12ebe03 |
comparison
equal
deleted
inserted
replaced
332:a999250e57c4 | 333:682abad78313 |
---|---|
1 # Reduced size as needed. | |
1 class SetLimitOnPaste < ActiveRecord::Migration | 2 class SetLimitOnPaste < ActiveRecord::Migration |
2 def change | 3 def change |
3 change_table :pastes do |t| | 4 change_table :pastes do |t| |
4 t.change :ip, :string, :limit => 50 | 5 t.change :ip, :string, :limit => 50 |
5 t.change :paste_hash, :string, :limit => 150 | 6 t.change :paste_hash, :string, :limit => 150 |