mailr/db/migrate/20110816093648_rename_from_column_in_messages.rb

12 lines
286 B
Ruby
Raw Normal View History

2011-08-16 20:05:58 +02:00
class RenameFromColumnInMessages < ActiveRecord::Migration
def self.up
rename_column :messages, :from, :from_addr
rename_column :messages, :to, :to_addr
end
def self.down
rename_column :messages, :from_addr, :from
rename_column :messages, :to_addr, :to
end
end