8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20130105203021_create_metadata.rb
1 class CreateMetadata < ActiveRecord::Migration
2   def change
3     create_table :metadata do |t|
4       t.string :uuid
5       t.string :created_by_client
6       t.string :created_by_user
7       t.datetime :created_at
8       t.string :modified_by_client
9       t.string :modified_by_user
10       t.datetime :modified_at
11       t.string :target_uuid
12       t.string :target_kind
13       t.references :native_target, :polymorphic => true
14       t.string :metadatum_class
15       t.string :key
16       t.string :value
17       t.text :info # "unlimited length" in postgresql
18
19       t.timestamps
20     end
21   end
22 end