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

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130125185724) do
ActiveRecord::Schema.define(:version => 20130201022153) do
create_table "cards", :force => true do |t|
t.string "card_number"
@@ -35,6 +35,27 @@ ActiveRecord::Schema.define(:version => 20130125185724) do
t.datetime "updated_at", :null => false
end
create_table "mac_logs", :force => true do |t|
t.string "mac"
t.string "ip"
t.string "action"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "macs", :force => true do |t|
t.integer "user_id"
t.string "mac"
t.string "ip"
t.datetime "since"
t.datetime "refreshed"
t.boolean "active"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "macs", ["user_id"], :name => "index_macs_on_user_id"
create_table "user_certifications", :force => true do |t|
t.integer "user_id"
t.integer "certification_id"