Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130123180224_create_api_clients.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreateApiClients < ActiveRecord::Migration
6   def change
7     create_table :api_clients do |t|
8       t.string :uuid
9       t.string :created_by_client
10       t.string :created_by_user
11       t.string :modified_by_client
12       t.string :modified_by_user
13       t.datetime :modified_at
14       t.string :name
15       t.string :url_prefix
16
17       t.timestamps
18     end
19     add_index :api_clients, :uuid, :unique => true
20   end
21 end