summaryrefslogtreecommitdiffstats
path: root/db/migrate/20100705164950_change_changes_path_length_limit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20100705164950_change_changes_path_length_limit.rb')
-rw-r--r--db/migrate/20100705164950_change_changes_path_length_limit.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20100705164950_change_changes_path_length_limit.rb b/db/migrate/20100705164950_change_changes_path_length_limit.rb
new file mode 100644
index 000000000..5f34d5dcf
--- /dev/null
+++ b/db/migrate/20100705164950_change_changes_path_length_limit.rb
@@ -0,0 +1,11 @@
+class ChangeChangesPathLengthLimit < ActiveRecord::Migration
+ def self.up
+ change_column :changes, :path, :text, :default => "", :null => false
+ change_column :changes, :from_path, :text
+ end
+
+ def self.down
+ change_column :changes, :path, :string, :default => "", :null => false
+ change_column :changes, :from_path, :string
+ end
+end