8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20130606183519_create_authorized_keys.rb
1 class CreateAuthorizedKeys < ActiveRecord::Migration
2   def change
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
9       t.string :name
10       t.string :key_type
11       t.string :authorized_user
12       t.text :public_key
13       t.datetime :expires_at
14
15       t.timestamps
16     end
17     add_index :authorized_keys, :uuid, :unique => true
18     add_index :authorized_keys, [:authorized_user, :expires_at]
19   end
20 end