Homepage: first publish of a full set of parts for the server
[mwamko.git] / db / migrate / 014_local_ip.rb
bloba8a7b455848ab6cddb19bd172904222ff1fde5f3
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
8     add_index(:local_ips, :ip, :unique => true)
9   end
11   def self.down
12     drop_table :local_ips
13   end
14 end