Adding pamela but I'm dumb and messed up routing

This commit is contained in:
2013-01-31 20:33:40 -07:00
parent 6673573e36
commit a7e999614c
21 changed files with 364 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
class CreateMacs < ActiveRecord::Migration
def change
create_table :macs do |t|
t.references :user
t.string :mac
t.string :ip
t.datetime :since
t.datetime :refreshed
t.boolean :active
t.timestamps
end
add_index :macs, :user_id
end
end

View File

@@ -0,0 +1,11 @@
class CreateMacLogs < ActiveRecord::Migration
def change
create_table :mac_logs do |t|
t.string :mac
t.string :ip
t.string :action
t.timestamps
end
end
end