15 lines
241 B
Ruby
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
|