This commit is contained in:
r888888888
2014-07-23 15:15:47 -07:00
parent 44b59ab18d
commit 6772566665
12 changed files with 207 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
class CreateApiKeys < ActiveRecord::Migration
def change
create_table :api_keys do |t|
t.integer :user_id, :null => false
t.string :key, :null => false
t.timestamps
end
add_index :api_keys, :user_id, :unique => true
add_index :api_keys, :key, :unique => true
end
end