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
|
||||
Reference in New Issue
Block a user