mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-20 14:31:30 +08:00
Merge pull request #539 from okriuchykhin/ok_SCI_1152
Remove default value for role in UserProject [SCI-1152]
This commit is contained in:
commit
4150cd7102
1 changed files with 9 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue