To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / db / migrate / 20130215073721_change_users_lastname_length_to_255.rb @ 1298:4f746d8966dd
History | View | Annotate | Download (293 Bytes)
| 1 | 1295:622f24f53b42 | Chris | class ChangeUsersLastnameLengthTo255 < ActiveRecord::Migration |
|---|---|---|---|
| 2 | def self.up |
||
| 3 | change_column :users, :lastname, :string, :limit => 255, :default => '', :null => false |
||
| 4 | end
|
||
| 5 | |||
| 6 | def self.down |
||
| 7 | change_column :users, :lastname, :string, :limit => 30, :default => '', :null => false |
||
| 8 | end
|
||
| 9 | end |