mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
10 lines
209 B
Ruby
10 lines
209 B
Ruby
|
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
|