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