Defect #5771 » 0001-Force-the-default-value-of-path-to-be-set-on-the-Cha.patch
app/models/change.rb | ||
---|---|---|
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 |
db/migrate/20100705164950_change_changes_path_length_limit.rb | ||
---|---|---|
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 |
- « Previous
- 1
- 2
- Next »