]> source.dussan.org Git - redmine.git/commitdiff
Migration to add identifier attribute on project.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Apr 2007 06:29:09 +0000 (06:29 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 2 Apr 2007 06:29:09 +0000 (06:29 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@397 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/037_add_project_identifier.rb [new file with mode: 0644]

diff --git a/db/migrate/037_add_project_identifier.rb b/db/migrate/037_add_project_identifier.rb
new file mode 100644 (file)
index 0000000..0fd8c75
--- /dev/null
@@ -0,0 +1,9 @@
+class AddProjectIdentifier < ActiveRecord::Migration
+  def self.up
+    add_column :projects, :identifier, :string, :limit => 20
+  end
+
+  def self.down
+    remove_column :projects, :identifier
+  end
+end