Skip to content

Instantly share code, notes, and snippets.

@errorstudio
Created September 7, 2012 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errorstudio/3668852 to your computer and use it in GitHub Desktop.
Save errorstudio/3668852 to your computer and use it in GitHub Desktop.
Add a summary field to translated Refinery News Items
class AddSummaryToNewsItems < ActiveRecord::Migration
def up
Refinery::News::Item.drop_translation_table! #waaaah
Refinery::News::Item.create_translation_table!({
:title => :string, :summary => :text, :body => :text},
{
:migrate_data => true
})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment