Cleanup migrations
Cleanup our migrations, replacing as much of our custom code and monkey patching with modern standard rails methods.
This commit is contained in:
parent
e65e41a694
commit
ac7bb003ec
36 changed files with 422 additions and 585 deletions
|
@ -2,11 +2,11 @@ require 'migrate'
|
|||
|
||||
class CreateAcls < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table "acls", myisam_table do |t|
|
||||
t.column "id", :integer_pk, :null => false
|
||||
t.column "address", :inet, :null => false
|
||||
t.column "netmask", :inet, :null => false
|
||||
t.column "k", :string, :null => false
|
||||
create_table "acls", :id => false do |t|
|
||||
t.column "id", :primary_key, :null => false
|
||||
t.column "address", :inet, :null => false
|
||||
t.column "netmask", :inet, :null => false
|
||||
t.column "k", :string, :null => false
|
||||
t.column "v", :string
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue