Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130326173804_create_commits.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class CreateCommits < ActiveRecord::Migration
6   def change
7     create_table :commits do |t|
8       t.string :repository_name
9       t.string :sha1
10       t.string :message
11
12       t.timestamps
13     end
14     add_index :commits, [:repository_name, :sha1], :unique => true
15   end
16 end