]> git.openstreetmap.org Git - rails.git/blob - db/migrate/018_create_acls.rb
Shut up libxml's "Must specify a string with one or more characters" error on relatio...
[rails.git] / db / migrate / 018_create_acls.rb
1 class CreateAcls < ActiveRecord::Migration
2   def self.up
3     create_table "acls", myisam_table do |t|
4       t.column "id",      :integer, :null => false
5       t.column "address", :integer, :null => false
6       t.column "netmask", :integer, :null => false
7       t.column "k",       :string,  :null => false
8       t.column "v",       :string
9     end
10
11     add_primary_key "acls", ["id"]
12     add_index "acls", ["k"], :name => "acls_k_idx"
13
14     change_column "acls", "id", :integer, :null => false, :options => "AUTO_INCREMENT"
15     change_column "acls", "address", :integer, :null => false, :unsigned => true
16     change_column "acls", "netmask", :integer, :null => false, :unsigned => true
17   end
18
19   def self.down
20     drop_table "acls"
21   end
22 end