OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20210127134438_alter_user_a...

13 lines
436 B

class AlterUserAttributesMaxLength < ActiveRecord::Migration[6.0]
def up
change_column :users, :firstname, :string, limit: nil
change_column :users, :lastname, :string, limit: nil
change_column :users, :mail, :string, limit: nil
end
def down
change_column :users, :firstname, :string, limit: 30
change_column :users, :lastname, :string, limit: 30
change_column :users, :mail, :string, limit: 60
end
end