Project

General

Profile

Defect #5771 » 0001-Force-the-default-value-of-path-to-be-set-on-the-Cha.patch

Holger Just, 2010-07-06 23:01

View differences:

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
(2-2/2)