web/db/migrate/20130624214019_rename_language_implementations_to_runtimes.rb
changeset 106 eac4098d544d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/db/migrate/20130624214019_rename_language_implementations_to_runtimes.rb	Tue Jun 25 22:11:10 2013 +0200
@@ -0,0 +1,11 @@
+class RenameLanguageImplementationsToRuntimes < ActiveRecord::Migration
+  def up
+    rename_table :language_implementations, :runtimes
+    rename_column :benchmark_batches, :language_implementation_id, :configuration_id
+  end
+
+  def down
+    rename_table :runtimes, :language_implementations
+    rename_column :benchmark_batches, :configuration_id, :language_implementation_id
+  end
+end