aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120601151114_create_category_translations.rb
diff options
context:
space:
mode:
authorPhilip Arndt <p@arndt.io>2013-07-14 04:37:18 +1200
committerPhilip Arndt <p@arndt.io>2013-07-14 04:40:18 +1200
commit49c38f208b8a05cee49400ffababc49dfc431daa (patch)
treec334aacead57bd50efa4d473be2e189cd8bcdfb0 /db/migrate/20120601151114_create_category_translations.rb
parent6c14fbc20c8dece121b7569b7a5a0bd3c497fd57 (diff)
downloadrefinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.tar.gz
refinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.tar.bz2
refinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.zip
Revert f906ef0 but maintain table name improvements
Diffstat (limited to 'db/migrate/20120601151114_create_category_translations.rb')
-rw-r--r--db/migrate/20120601151114_create_category_translations.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20120601151114_create_category_translations.rb b/db/migrate/20120601151114_create_category_translations.rb
new file mode 100644
index 0000000..a7cb956
--- /dev/null
+++ b/db/migrate/20120601151114_create_category_translations.rb
@@ -0,0 +1,14 @@
+class CreateCategoryTranslations < ActiveRecord::Migration
+ def up
+ Refinery::Blog::Category.create_translation_table!({
+ :title => :string,
+ :slug => :string
+ }, {
+ :migrate_data => true
+ })
+ end
+
+ def down
+ Refinery::Blog::Category.drop_translation_table! :migrate_data => true
+ end
+end