20130215073721_change_users_lastname_length_to_255.rb 298 Bytes
Newer Older
1
class ChangeUsersLastnameLengthTo255 < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9
  def self.up
    change_column :users, :lastname, :string, :limit => 255, :default => '', :null => false
  end

  def self.down
    change_column :users, :lastname, :string, :limit => 30, :default => '', :null => false
  end
end