mailr/db/migrate/20110816093648_rename_from_column_in_messages.rb
Wojciech Todryk 217c7a2288 contacts done
2011-08-16 20:05:58 +02:00

12 lines
286 B
Ruby
Executable file

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