diff options
author | Nick Hengeveld <nickh@github.com> | 2012-04-18 03:41:31 +0400 |
---|---|---|
committer | Scott Chacon <schacon@gmail.com> | 2012-05-02 23:11:11 +0400 |
commit | 32339b969b8dad4511899519b1d211031562a4d8 (patch) | |
tree | e332034d934c09be9fa55d0e63d0e72703a5c8cf /db | |
parent | 8331570949c45e55eff8e7ebd9cd88dd38fd211c (diff) |
Preindex and Asciidoc updates
* Change doc.blob_sha from text to string
* Support [NOTE] admonition blocks
* Use the SHA1 of the assembled (ie. with includes) doc so changes
to included files will cause new content to generate.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20120417220111_change_doc_sha_to_string.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 2 |
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 |