1 class CreateAuthorizedKeys < ActiveRecord::Migration
3 create_table :authorized_keys do |t|
4 t.string :uuid, :null => false
5 t.string :owner, :null => false
6 t.string :modified_by_client
7 t.string :modified_by_user
8 t.datetime :modified_at
11 t.string :authorized_user
13 t.datetime :expires_at
17 add_index :authorized_keys, :uuid, :unique => true
18 add_index :authorized_keys, [:authorized_user, :expires_at]