mailr/db/migrate/20110723153214_create_servers.rb
2011-07-23 21:55:26 +02:00

15 lines
241 B
Ruby

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