scinote-web/db/migrate/20170404150845_remove_default_user_project_role_value.rb
2017-04-04 17:19:26 +02:00

9 lines
209 B
Ruby

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