Mercurial > hg > soundsoftware-site
comparison db/migrate/20100705164950_change_changes_path_length_limit.rb @ 912:5e80956cc792 cannam_integration
Merge from branch "redmine-1.3"
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2012 13:53:18 +0000 |
parents | cbb26bc654de |
children |
comparison
equal
deleted
inserted
replaced
911:487d96eac004 | 912:5e80956cc792 |
---|---|
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 |