1
0
Fork 0
forked from OpenNeo/impress
impress/db/openneo_id_migrate/20240401124406_increase_username_length.rb

15 lines
415 B
Ruby
Raw Normal View History

class IncreaseUsernameLength < ActiveRecord::Migration[7.1]
def change
# NOTE: This is paired with a migration to the `openneo_impress` database,
# too!
reversible do |direction|
direction.up {
change_column :users, :name, :string, limit: 30, null: false
}
direction.down {
change_column :users, :name, :string, limit: 20, null: false
}
end
end
end