canvas-lms/db/migrate/20161220193846_add_ab_guid2...

32 lines
1.4 KiB
Ruby

#
# Copyright (C) 2016 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
class AddAbGuid2ToLearningOutcomes < ActiveRecord::Migration[4.2]
tag :predeploy
disable_ddl_transaction!
def change
add_column :learning_outcomes, :vendor_guid_2, :string, limit: 255
add_column :learning_outcomes, :migration_id_2, :string, limit: 255
add_column :learning_outcome_groups, :vendor_guid_2, :string, limit: 255
add_column :learning_outcome_groups, :migration_id_2, :string, limit: 255
add_index :learning_outcomes, :vendor_guid_2, :name => "index_learning_outcomes_on_vendor_guid_2", :algorithm => :concurrently
add_index :learning_outcome_groups, :vendor_guid_2, :name => "index_learning_outcome_groups_on_vendor_guid_2", :algorithm => :concurrently
end
end