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

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20120308153738_create_versions.rb')
-rw-r--r--db/migrate/20120308153738_create_versions.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20120308153738_create_versions.rb b/db/migrate/20120308153738_create_versions.rb
new file mode 100644
index 00000000..091b35f5
--- /dev/null
+++ b/db/migrate/20120308153738_create_versions.rb
@@ -0,0 +1,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