Skip to content

Commit 49882ec

Browse files
committed
drop data_exports
refs #CNVS-27773 Change-Id: I1d39e3858f4ff72c186159186a4aa4b0e4faf89a Reviewed-on: https://gerrit.instructure.com/74019 Tested-by: Jenkins Reviewed-by: Jeremy Stanley <jeremy@instructure.com> Product-Review: James Williams <jamesw@instructure.com> QA-Review: James Williams <jamesw@instructure.com>
1 parent 518f1bf commit 49882ec

7 files changed

Lines changed: 21 additions & 301 deletions

File tree

app/controllers/data_exports_api/data_exports_api_controller.rb

Lines changed: 0 additions & 143 deletions
This file was deleted.

app/models/data_exports_api/data_export.rb

Lines changed: 0 additions & 52 deletions
This file was deleted.

config/initializers/active_record.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,6 @@ def initialize(*args)
641641
ActiveRecord::Associations::Builder::Association.prepend(ForceDeprecationAsError)
642642
end
643643

644-
unless defined? OpenDataExport
645-
# allow an exportable option that we don't actually do anything with, because our open-source build may not contain OpenDataExport
646-
ActiveRecord::Associations::Builder::Association.valid_options << :exportable
647-
end
648-
649644
ActiveRecord::Relation.class_eval do
650645
def includes(*args)
651646
return super if args.empty? || args == [nil]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class DropDataExports < ActiveRecord::Migration
2+
tag :postdeploy
3+
4+
def up
5+
drop_table :data_exports
6+
end
7+
8+
def down
9+
create_table :data_exports do |t|
10+
t.integer :user_id, :limit => 8, :null => false
11+
t.integer :context_id, :limit => 8, :null => false
12+
t.string :context_type, :null => false
13+
t.string :workflow_state, :null => false
14+
t.datetime :created_at
15+
t.datetime :updated_at
16+
end
17+
add_index :data_exports, [:context_id, :context_type]
18+
add_index :data_exports, :user_id
19+
add_foreign_key :data_exports, :users
20+
end
21+
end

lib/api/v1/data_export.rb

Lines changed: 0 additions & 39 deletions
This file was deleted.

spec/lib/api/v1/data_export_spec.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

spec/models/data_exports_api/data_export_spec.rb

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)