Browse files

varchar to text changes, and a view tweak, thanks to david welton

  • Loading branch information...
1 parent 8b8b13a commit b844a46e52a8fd535e6c68f362abf4a435d075e9 Dylan Stamat committed Nov 17, 2009
View
4 generators/i18n_backend_database/templates/migrate/create_i18n_tables.rb
@@ -8,8 +8,8 @@ def self.up
create_table :translations do |t|
t.string :key
- t.string :raw_key
- t.string :value
+ t.text :raw_key
+ t.text :value
t.integer :pluralization_index, :default => 1
t.integer :locale_id
end
View
2 lib/views/translations/translations.html.erb
@@ -19,7 +19,7 @@
<% remote_form_for([@locale, translation]) do |f| %>
<p><%=h translation.default_locale_value || translation.raw_key %></p>
<p>
- <%= f.text_field :value %>
+ <%= f.text_field :value, :size => 128 %>
<%= f.submit "Update" %>
</p>
<% end %>

0 comments on commit b844a46

Please sign in to comment.