repo.or.cz
/
mwamko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Homepage: first publish of a full set of parts for the server
[mwamko.git]
/
db
/
migrate
/
014_local_ip.rb
blob
a8a7b455848ab6cddb19bd172904222ff1fde5f3
1
class LocalIp < ActiveRecord::Migration
2
def self.up
3
create_table :local_ips do |t|
4
t.column :veid, :integer, {:null => false}
5
t.column :ip, :string, {:null => false}
6
end
7
8
add_index(:local_ips, :ip, :unique => true)
9
end
10
11
def self.down
12
drop_table :local_ips
13
end
14
end