From 18dcbe4e540db319a49396f84da27926d6e4cd5b Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Tue, 4 Apr 2017 17:19:26 +0200 Subject: [PATCH] Remove default value for role in UserProject [SCI-1152] --- ...70404150845_remove_default_user_project_role_value.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20170404150845_remove_default_user_project_role_value.rb diff --git a/db/migrate/20170404150845_remove_default_user_project_role_value.rb b/db/migrate/20170404150845_remove_default_user_project_role_value.rb new file mode 100644 index 000000000..68718203e --- /dev/null +++ b/db/migrate/20170404150845_remove_default_user_project_role_value.rb @@ -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