diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-24 05:58:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-24 05:58:37 +0000 |
commit | 4bf84ca468dbd31d77747868156c01cd87cf3ff6 (patch) | |
tree | 4be089d57674997f85833a8f141110c64946b817 /db/migrate/20110224000000_add_repositories_path_encoding.rb | |
parent | a2e47f9fbaf5b2c119f183a16b36540167b5742e (diff) | |
download | redmine-4bf84ca468dbd31d77747868156c01cd87cf3ff6.tar.gz redmine-4bf84ca468dbd31d77747868156c01cd87cf3ff6.zip |
scm: add "path_encoding" column in repositories table (#2664, #2274).
Contributed by Yuya Nishihara.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4940 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20110224000000_add_repositories_path_encoding.rb')
-rw-r--r-- | db/migrate/20110224000000_add_repositories_path_encoding.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20110224000000_add_repositories_path_encoding.rb b/db/migrate/20110224000000_add_repositories_path_encoding.rb new file mode 100644 index 000000000..253d7a66e --- /dev/null +++ b/db/migrate/20110224000000_add_repositories_path_encoding.rb @@ -0,0 +1,9 @@ +class AddRepositoriesPathEncoding < ActiveRecord::Migration + def self.up + add_column :repositories, :path_encoding, :string, :limit => 64, :default => nil + end + + def self.down + remove_column :repositories, :path_encoding + end +end |