]> git.openstreetmap.org Git - rails.git/blob - db/migrate/018_create_acls.rb
Merge remote-tracking branch 'openstreetmap/pull/1375'
[rails.git] / db / migrate / 018_create_acls.rb
1 require "migrate"
2
3 class CreateAcls < ActiveRecord::Migration
4   def self.up
5     create_table "acls", :id => false do |t|
6       t.column "id",      :primary_key, :null => false
7       t.column "address", :inet, :null => false
8       t.column "netmask", :inet, :null => false
9       t.column "k",       :string, :null => false
10       t.column "v",       :string
11     end
12
13     add_index "acls", ["k"], :name => "acls_k_idx"
14   end
15
16   def self.down
17     drop_table "acls"
18   end
19 end