mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
9 lines
299 B
Ruby
9 lines
299 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddIndexesToSharingColumns < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_index :team_repositories, :permission_level
|
|
add_index :repositories, :permission_level
|
|
change_column_default :team_repositories, :permission_level, from: nil, to: 0
|
|
end
|
|
end
|