aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180301142531_create_simple_exporters.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20180301142531_create_simple_exporters.rb b/db/migrate/20180301142531_create_simple_exporters.rb
new file mode 100644
index 000000000..c007546c2
--- /dev/null
+++ b/db/migrate/20180301142531_create_simple_exporters.rb
@@ -0,0 +1,7 @@
+class CreateSimpleExporters < ActiveRecord::Migration
+ def change
+ rename_table :simple_importers, :simple_interfaces
+ add_column :simple_interfaces, :type, :string
+ SimpleInterface.update_all type: :SimpleImporter
+ end
+end