X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..a7631a1ccb6e2a6925d00a06562e171c4ce4ea2f:/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb diff --git a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb index 13224205e6..9f003ba8d6 100644 --- a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb +++ b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0 -class AddNotNullConstraintToGroupName < ActiveRecord::Migration +class AddNotNullConstraintToGroupName < ActiveRecord::Migration[4.2] def change ActiveRecord::Base.connection.execute("update groups set name=uuid where name is null or name=''") change_column_null :groups, :name, false