scinote-web/db/migrate/20190812072649_add_indexes_to_sharing_columns.rb
2019-08-29 17:21:49 +02:00

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