web/db/migrate/20130624214019_rename_language_implementations_to_runtimes.rb
author Marcel Hlopko <marcel.hlopko@gmail.com>
Tue, 25 Jun 2013 22:11:10 +0200
changeset 106 eac4098d544d
permissions -rw-r--r--
huge refactoring to better fit what we agreed on
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
106
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     1
class RenameLanguageImplementationsToRuntimes < ActiveRecord::Migration
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     2
  def up
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     3
    rename_table :language_implementations, :runtimes
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     4
    rename_column :benchmark_batches, :language_implementation_id, :configuration_id
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     5
  end
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     6
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     7
  def down
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     8
    rename_table :runtimes, :language_implementations
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
     9
    rename_column :benchmark_batches, :configuration_id, :language_implementation_id
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    10
  end
eac4098d544d huge refactoring to better fit what we agreed on
Marcel Hlopko <marcel.hlopko@gmail.com>
parents:
diff changeset
    11
end