canvas-lms/db/migrate/20150113222309_drop_communi...

15 lines
443 B
Ruby

class DropCommunicationChannelPushColumns < ActiveRecord::Migration
tag :postdeploy
def up
remove_column :communication_channels, :access_token_id
remove_column :communication_channels, :internal_path
end
def down
add_column :communication_channels, :access_token_id, :integer, limit: 8
add_column :communication_channels, :internal_path, :string
add_foreign_key :communication_channels, :access_tokens
end
end