]> git.openstreetmap.org Git - rails.git/blob - db/migrate/018_create_acls.rb
Merge remote-tracking branch 'upstream/pull/3177'
[rails.git] / db / migrate / 018_create_acls.rb
1 class CreateAcls < ActiveRecord::Migration[4.2]
2   def self.up
3     create_table "acls", :id => false do |t|
4       t.column "id",      :primary_key, :null => false
5       t.column "address", :inet, :null => false
6       t.column "netmask", :inet, :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   end
13
14   def self.down
15     drop_table "acls"
16   end
17 end