From 5c88c1f50bd4295325cbb1a69704cf5423b20b2b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 8 May 2007 09:26:57 +0000 Subject: 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 --- db/migrate/044_set_language_length_to_five.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/044_set_language_length_to_five.rb (limited to 'db') diff --git a/db/migrate/044_set_language_length_to_five.rb b/db/migrate/044_set_language_length_to_five.rb new file mode 100644 index 000000000..a417f7d70 --- /dev/null +++ b/db/migrate/044_set_language_length_to_five.rb @@ -0,0 +1,9 @@ +class SetLanguageLengthToFive < ActiveRecord::Migration + def self.up + change_column :users, :language, :string, :limit => 5, :default => "" + end + + def self.down + raise IrreversibleMigration + end +end -- cgit v1.2.3