diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 10:09:21 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-11 10:09:21 +1100 |
commit | e5dd06bb90b28b14b9a476d999d22ca345dabf07 (patch) | |
tree | fb801d4b883e13e7dd3e61eafc1694e6811bb4af /db | |
parent | de6e80be524f6e8488727306ffc97218f3ef7b5f (diff) |
Rename models and tables exim -> mail_server
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20121010214348_rename_exim_log_tables.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20121010214348_rename_exim_log_tables.rb b/db/migrate/20121010214348_rename_exim_log_tables.rb new file mode 100644 index 000000000..75fcff065 --- /dev/null +++ b/db/migrate/20121010214348_rename_exim_log_tables.rb @@ -0,0 +1,13 @@ +class RenameEximLogTables < ActiveRecord::Migration + def self.up + rename_table :exim_logs, :mail_server_logs + rename_table :exim_log_dones, :mail_server_log_dones + rename_column :mail_server_logs, :exim_log_done_id, :mail_server_log_done_id + end + + def self.down + rename_table :mail_server_logs, :exim_logs + rename_table :mail_server_log_dones, :exim_log_dones + rename_column :exim_logs, :mail_server_log_done_id, :exim_log_done_id + end +end |