projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
closes #9684
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20140818125735_add_not_null_constraint_to_group_name.rb
1
class AddNotNullConstraintToGroupName < ActiveRecord::Migration
2
def change
3
ActiveRecord::Base.connection.execute("update groups set name=uuid where name is null or name=''")
4
change_column_null :groups, :name, false
5
end
6
end