mailr/db/migrate/20110723153214_create_servers.rb
Wojciech Todryk 37f548ce46 devel
2011-07-27 20:34:30 +02:00

15 lines
241 B
Ruby
Executable file

class CreateServers < ActiveRecord::Migration
def self.up
create_table :servers do |t|
t.string :name
t.string :port
t.references :user
t.timestamps
end
end
def self.down
drop_table :servers
end
end