My users table login column is String type with limit of 40 characters. Now I am planning to increase the limit to 55 characters.
Any one please let me know how can we increase this limit by using ROR migration.
Thanks, Sravan
class YourMigration < ActiveRecord::Migration
def up
change_column :users, :login, :string, :limit => 55
end
def down
change_column :users, :login, :string, :limit => 40
end
end