mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Remove default value for role in UserProject [SCI-1152]
This commit is contained in:
parent
317739af1e
commit
18dcbe4e54
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