]> git.openstreetmap.org Git - rails.git/blob - db/migrate/018_create_acls.rb
Fix primary key creation for ACL table.
[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_pk, :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_index "acls", ["k"], :name => "acls_k_idx"
12
13     change_column "acls", "address", :integer, :null => false, :unsigned => true
14     change_column "acls", "netmask", :integer, :null => false, :unsigned => true
15   end
16
17   def self.down
18     drop_table "acls"
19   end
20 end