aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20131124113021_create_blog_translations.refinery_blog.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20131124113021_create_blog_translations.refinery_blog.rb')
-rw-r--r--db/migrate/20131124113021_create_blog_translations.refinery_blog.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20131124113021_create_blog_translations.refinery_blog.rb b/db/migrate/20131124113021_create_blog_translations.refinery_blog.rb
new file mode 100644
index 0000000..b88aa3c
--- /dev/null
+++ b/db/migrate/20131124113021_create_blog_translations.refinery_blog.rb
@@ -0,0 +1,18 @@
+# This migration comes from refinery_blog (originally 20120530102901)
+class CreateBlogTranslations < ActiveRecord::Migration
+ def up
+ Refinery::Blog::Post.create_translation_table!({
+ :body => :text,
+ :custom_teaser => :text,
+ :custom_url => :string,
+ :slug => :string,
+ :title => :string
+ }, {
+ :migrate_data => true
+ })
+ end
+
+ def down
+ Refinery::Blog::Post.drop_translation_table! :migrate_data => true
+ end
+end