Merge pull request #539 from okriuchykhin/ok_SCI_1152

Remove default value for role in UserProject [SCI-1152]
This commit is contained in:
okriuchykhin 2017-04-05 13:31:15 +02:00 committed by GitHub
commit 4150cd7102

View file

@ -0,0 +1,9 @@
class RemoveDefaultUserProjectRoleValue < ActiveRecord::Migration
def up
change_column_default(:user_projects, :role, nil)
end
def down
change_column_default(:user_projects, :role, 0)
end
end