Search code examples
ruby-on-rails-3ruby-on-rails-pluginsglobalize2

Rails Globalize3 column sizes


How do you specify the column size of the columns in the translation tables?

From the README:

Post.create_translation_table! :title => :string, :text => :text

how would I work in a :limit => 37337?

I tried

Post.create_translation_table! :title => :string, :limit => 1000, :text => :text

but that doesn't work

using rails 3 + globalize3 0.1.0.beta


Solution

  • Post.create_translation_table! :title =>{ :type=> :string, :limit => 1000}, :text => :text