mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
10 lines
299 B
Ruby
10 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
|