canvas-lms/db/migrate/20141216202750_remove_unuse...

16 lines
422 B
Ruby

class RemoveUnusedExternalFeedColumns < ActiveRecord::Migration
tag :postdeploy
def up
remove_column :external_feeds, :body_match
remove_column :external_feeds, :feed_type
remove_column :external_feeds, :feed_purpose
end
def down
add_column :external_feeds, :body_match, :string
add_column :external_feeds, :feed_type, :string
add_column :external_feeds, :feed_purpose, :string
end
end