##// END OF EJS Templates
Force the default value of path to be set on the Change model class. #5771...
Eric Davis -
r3716:0d5fca9ba5ac
parent child
Show More
@@ -23,4 +23,8 class Change < ActiveRecord::Base
23 23 def relative_path
24 24 changeset.repository.relative_path(path)
25 25 end
26
27 def before_save
28 path ||= ""
29 end
26 30 end
@@ -1,6 +1,6
1 1 class ChangeChangesPathLengthLimit < ActiveRecord::Migration
2 2 def self.up
3 change_column :changes, :path, :text, :default => "", :null => false
3 change_column :changes, :path, :text, :null => false
4 4 change_column :changes, :from_path, :text
5 5 end
6 6
General Comments 0
You need to be logged in to leave comments. Login now