From 32339b969b8dad4511899519b1d211031562a4d8 Mon Sep 17 00:00:00 2001 From: Nick Hengeveld Date: Tue, 17 Apr 2012 16:41:31 -0700 Subject: 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. --- db/migrate/20120417220111_change_doc_sha_to_string.rb | 9 +++++++++ db/schema.rb | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20120417220111_change_doc_sha_to_string.rb (limited to 'db') 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 -- cgit v1.2.3