]> source.dussan.org Git - redmine.git/commitdiff
scm: add log_encoding column to repositories table (#1735).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 1 Mar 2011 09:47:06 +0000 (09:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 1 Mar 2011 09:47:06 +0000 (09:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4980 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20110228000000_add_repositories_log_encoding.rb [new file with mode: 0644]

diff --git a/db/migrate/20110228000000_add_repositories_log_encoding.rb b/db/migrate/20110228000000_add_repositories_log_encoding.rb
new file mode 100644 (file)
index 0000000..85cadaf
--- /dev/null
@@ -0,0 +1,9 @@
+class AddRepositoriesLogEncoding < ActiveRecord::Migration
+  def self.up
+    add_column :repositories, :log_encoding, :string, :limit => 64, :default => nil
+  end
+
+  def self.down
+    remove_column :repositories, :log_encoding
+  end
+end