##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at ChangeRepositoriesToFullSti db migration...
Rails4: replace deprecated Relation#update_all at ChangeRepositoriesToFullSti db migration git-svn-id: http://svn.redmine.org/redmine/trunk@12664 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r515:5c88c1f50bd4
r12389:caf49264c89a
Show More
044_set_language_length_to_five.rb
9 lines | 209 B | text/x-ruby | RubyLexer
/ db / migrate / 044_set_language_length_to_five.rb
Jean-Philippe Lang
Changed the length of 'language' column in users table from 2 to 5, to allow long language codes like pt-br....
r515 class SetLanguageLengthToFive < ActiveRecord::Migration
def self.up
change_column :users, :language, :string, :limit => 5, :default => ""
end
def self.down
raise IrreversibleMigration
end
end