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
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120417220111_change_doc_sha_to_string.rb9
-rw-r--r--db/schema.rb2
2 files changed, 10 insertions, 1 deletions
diff --git a/db/migrate/20120417220111_change_doc_sha_to_string.rb b/db/migrate/20120417220111_change_doc_sha_to_string.rb
new file mode 100644
index 00000000..8a272494
--- /dev/null
+++ b/db/migrate/20120417220111_change_doc_sha_to_string.rb
@@ -0,0 +1,9 @@
+class ChangeDocShaToString < ActiveRecord::Migration
+ def up
+ change_column :docs, :blob_sha, :string
+ end
+
+ def down
+ change_column :docs, :blob_sha, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 4fe5c07e..cf55e750 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -47,7 +47,7 @@ ActiveRecord::Schema.define(:version => 20120417224143) do
end
create_table "docs", :force => true do |t|
- t.text "blob_sha"
+ t.string "blob_sha"
t.text "plain"
t.text "html"
t.timestamp "created_at", :null => false