author | Marcel Hlopko <marcel.hlopko@gmail.com> |
Tue, 25 Jun 2013 22:11:10 +0200 | |
changeset 106 | eac4098d544d |
permissions | -rw-r--r-- |
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 |