Skip to content

Instantly share code, notes, and snippets.

@neilmiddleton
Created November 23, 2012 11:33
Show Gist options
  • Save neilmiddleton/4135225 to your computer and use it in GitHub Desktop.
Save neilmiddleton/4135225 to your computer and use it in GitHub Desktop.
Globalize3 conditional migrations
unless MyModel::Translation.column_names.map(&:to_sym).include?(:new_attrib)
add_column MyModel::Translation.table_name, :new_attrib, :string
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment