redmine/db/migrate/044_set_language_length_to_five.rb
Jean-Philippe Lang 5c88c1f50b Changed the length of 'language' column in users table from 2 to 5, to allow long language codes like pt-br.
Updated portuguese translation (Arthur Zapparoli).
Current pt translation moved to pt-br.


git-svn-id: http://redmine.rubyforge.org/svn/trunk@518 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-05-08 09:26:57 +00:00

10 lines
209 B
Ruby

class SetLanguageLengthToFive < ActiveRecord::Migration
def self.up
change_column :users, :language, :string, :limit => 5, :default => ""
end
def self.down
raise IrreversibleMigration
end
end