diff options
Diffstat (limited to 'db/migrate/20120601151114_create_category_translations.rb')
-rw-r--r-- | db/migrate/20120601151114_create_category_translations.rb | 14 |
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 |