Open-Source-Access-Control-.../db/migrate/20130201021949_create_macs.rb

16 lines
294 B
Ruby
Raw Normal View History

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