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 / 20100705164950_change_changes_path_length_limit.rb @ 912:5e80956cc792
History | View | Annotate | Download (461 Bytes)
| 1 | 0:513646585e45 | Chris | class ChangeChangesPathLengthLimit < ActiveRecord::Migration |
|---|---|---|---|
| 2 | def self.up |
||
| 3 | 1:cca12e1c1fd4 | Chris | # these are two steps to please MySQL 5 on Win32
|
| 4 | change_column :changes, :path, :text, :default => nil, :null => true |
||
| 5 | 0:513646585e45 | Chris | change_column :changes, :path, :text, :null => false |
| 6 | 909:cbb26bc654de | Chris | |
| 7 | 0:513646585e45 | Chris | change_column :changes, :from_path, :text |
| 8 | end
|
||
| 9 | |||
| 10 | def self.down |
||
| 11 | change_column :changes, :path, :string, :default => "", :null => false |
||
| 12 | change_column :changes, :from_path, :string |
||
| 13 | end
|
||
| 14 | end |