Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20120308153738_create_versions.rb « migrate « db - github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 091b35f57d84b5e493fe7516f244b2e50b0a4985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateVersions < ActiveRecord::Migration
  def change
    create_table :versions do |t|
      t.string :name
      t.string :commit_sha
      t.string :tree_sha
      t.datetime :committed
      t.timestamps
    end
    add_index :versions, [:name]
  end
end