scinote-web/db/migrate/20170404150845_remove_default_user_project_role_value.rb

10 lines
214 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class RemoveDefaultUserProjectRoleValue < ActiveRecord::Migration[4.2]
def up
change_column_default(:user_projects, :role, nil)
end
def down
change_column_default(:user_projects, :role, 0)
end
end