From fd37f37ee4ed83f90d4a8b597c3b5ae8070e8232 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Mar 2007 15:48:05 +0000 Subject: fixed problems when svn path doesn't point to the root directory of the repository. a root_url property has been added on the repository. it's automatically retrieved the first time the repository is browsed git-svn-id: http://redmine.rubyforge.org/svn/trunk@344 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/031_add_repository_root_url.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/031_add_repository_root_url.rb (limited to 'db') diff --git a/db/migrate/031_add_repository_root_url.rb b/db/migrate/031_add_repository_root_url.rb new file mode 100644 index 000000000..df57809c7 --- /dev/null +++ b/db/migrate/031_add_repository_root_url.rb @@ -0,0 +1,9 @@ +class AddRepositoryRootUrl < ActiveRecord::Migration + def self.up + add_column :repositories, :root_url, :string, :limit => 255, :default => "" + end + + def self.down + remove_column :repositories, :root_url + end +end -- cgit v1.2.3