095_remove_language_length_limit.rb

set users.language column limit to nil - Arthaey Angosii, 2008-06-05 20:02

Download (213 Bytes)

 
1
class RemoveLanguageLengthLimit < ActiveRecord::Migration
2
  def self.up
3
    change_column :users, :language, :string, :limit => nil, :default => ""
4
  end
5

    
6
  def self.down
7
    raise IrreversibleMigration
8
  end
9
end