drop unused column from sis_batches

test plan
 - migrations should work

Change-Id: I29a2b27607690ee62eee5c64e1111ea05772d2a7
Reviewed-on: https://gerrit.instructure.com/48810
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2015-02-13 12:48:41 -07:00
parent b1244f27f3
commit ab4664668f
3 changed files with 13 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class SisBatch < ActiveRecord::Base
belongs_to :user
EXPORTABLE_ATTRIBUTES = [
:id, :account_id, :batch_id, :ended_at, :errored_attempts, :workflow_state, :data, :created_at, :updated_at, :attachment_id, :processing_errors,
:id, :account_id, :ended_at, :errored_attempts, :workflow_state, :data, :created_at, :updated_at, :attachment_id, :processing_errors,
:processing_warnings, :batch_mode, :options, :user_id
]

View File

@ -48,6 +48,7 @@ class ActiveRecord::Base
'role_overrides' => %w(context_code enrollment_type),
'users' => %w(type creation_unique_id creation_sis_batch_id creation_email sis_name bio),
'quizzes' => %w(root_quiz_id),
'sis_batches' => %w{batch_id},
'stream_items' => %w{context_code item_asset_string},
'stream_item_instances' => %w(context_code),
'submissions' => %w(changed_since_publish late),

View File

@ -0,0 +1,11 @@
class DropBatchIdFromSisBatches < ActiveRecord::Migration
tag :postdeploy
def up
remove_column :sis_batches, :batch_id
end
def down
add_column :sis_batches, :batch_id, :string
end
end