@@ -1,14 +1,14 | |||||
1 | class ChangeChangesPathLengthLimit < ActiveRecord::Migration |
|
1 | class ChangeChangesPathLengthLimit < ActiveRecord::Migration | |
2 | def self.up |
|
2 | def self.up | |
3 | # these are two steps to please MySQL 5 on Win32 |
|
3 | # these are two steps to please MySQL 5 on Win32 | |
4 | change_column :changes, :path, :text, :default => nil, :null => true |
|
4 | change_column :changes, :path, :text, :default => nil, :null => true | |
5 | change_column :changes, :path, :text, :null => false |
|
5 | change_column :changes, :path, :text, :null => false | |
6 |
|
6 | |||
7 | change_column :changes, :from_path, :text |
|
7 | change_column :changes, :from_path, :text | |
8 | end |
|
8 | end | |
9 |
|
9 | |||
10 | def self.down |
|
10 | def self.down | |
11 | change_column :changes, :path, :string, :default => "", :null => false |
|
11 | change_column :changes, :path, :string, :default => "", :null => false | |
12 | change_column :changes, :from_path, :string |
|
12 | change_column :changes, :from_path, :string | |
13 | end |
|
13 | end | |
14 | end |
|
14 | end |
General Comments 0
You need to be logged in to leave comments.
Login now