Surprise Rails app!

This commit is contained in:
2012-08-30 23:54:25 -07:00
parent d6f1909591
commit e4ff40e5a1
84 changed files with 1771 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.integer :card_id
t.string :card_number
t.integer :card_permissions
t.timestamps
end
end
end

View File

@@ -0,0 +1,10 @@
class CreateDoorLogs < ActiveRecord::Migration
def change
create_table :door_logs do |t|
t.string :key
t.integer :data
t.timestamps
end
end
end