@@ -23,4 +23,8 class Change < ActiveRecord::Base | |||||
23 | def relative_path |
|
23 | def relative_path | |
24 | changeset.repository.relative_path(path) |
|
24 | changeset.repository.relative_path(path) | |
25 | end |
|
25 | end | |
|
26 | ||||
|
27 | def before_save | |||
|
28 | path ||= "" | |||
|
29 | end | |||
26 | end |
|
30 | end |
@@ -1,6 +1,6 | |||||
1 | class ChangeChangesPathLengthLimit < ActiveRecord::Migration |
|
1 | class ChangeChangesPathLengthLimit < ActiveRecord::Migration | |
2 | def self.up |
|
2 | def self.up | |
3 |
change_column :changes, :path, :text, |
|
3 | change_column :changes, :path, :text, :null => false | |
4 | change_column :changes, :from_path, :text |
|
4 | change_column :changes, :from_path, :text | |
5 | end |
|
5 | end | |
6 |
|
6 |
General Comments 0
You need to be logged in to leave comments.
Login now