Defect #5771 » 0001-Force-the-default-value-of-path-to-be-set-on-the-Cha.patch
| app/models/change.rb | ||
|---|---|---|
|
def relative_path
|
||
|
changeset.repository.relative_path(path)
|
||
|
end
|
||
|
|
||
|
def before_save
|
||
|
path ||= ""
|
||
|
end
|
||
|
end
|
||
| db/migrate/20100705164950_change_changes_path_length_limit.rb | ||
|---|---|---|
|
class ChangeChangesPathLengthLimit < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
change_column :changes, :path, :text, :default => "", :null => false
|
||
|
change_column :changes, :path, :text, :null => false
|
||
|
change_column :changes, :from_path, :text
|
||
|
end
|
||
- « Previous
- 1
- 2
- Next »