Migration to add identifier attribute on project.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@397 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-04-02 06:29:09 +00:00
parent 4ff8386e3d
commit 006b8716ed
1 changed files with 9 additions and 0 deletions

View File

@ -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