Adding pamela but I'm dumb and messed up routing
This commit is contained in:
15
db/migrate/20130201021949_create_macs.rb
Normal file
15
db/migrate/20130201021949_create_macs.rb
Normal 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
|
||||
11
db/migrate/20130201022153_create_mac_logs.rb
Normal file
11
db/migrate/20130201022153_create_mac_logs.rb
Normal 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
|
||||
23
db/schema.rb
23
db/schema.rb
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user