Remove default value for role in UserProject [SCI-1152]

This commit is contained in:
Oleksii Kriuchykhin 2017-04-04 17:19:26 +02:00
parent 317739af1e
commit 18dcbe4e54

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