class CreateTraits < ActiveRecord::Migration
  def change
    create_table :traits do |t|
      t.string :uuid, :null => false
      t.string :owner, :null => false
      t.string :modified_by_client
      t.string :modified_by_user
      t.datetime :modified_at
      t.string :name
      t.text :properties

      t.timestamps
    end
    add_index :traits, :uuid, :unique => true
    add_index :traits, :name
  end
end
