mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
9 lines
214 B
Ruby
9 lines
214 B
Ruby
class RemoveDefaultUserProjectRoleValue < ActiveRecord::Migration[4.2]
|
|
def up
|
|
change_column_default(:user_projects, :role, nil)
|
|
end
|
|
|
|
def down
|
|
change_column_default(:user_projects, :role, 0)
|
|
end
|
|
end
|