From 5882629e26abcc6dcf7d1f0a0e62982ea1a308ca 2015-09-21 21:00:06
From: Jean-Philippe Lang
<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>
<%= f.text_field :hours, :size => 6, :required => true %>
-<%= f.text_field :comments, :size => 100, :maxlength => 255 %>
+<%= f.text_field :comments, :size => 100, :maxlength => 1024 %>
<%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %>
<% @time_entry.custom_field_values.each do |value| %><%= custom_field_tag_with_label :time_entry, value %>
diff --git a/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb new file mode 100644 index 0000000..8366e8f --- /dev/null +++ b/db/migrate/20150921204850_change_time_entries_comments_limit_to_1024.rb @@ -0,0 +1,9 @@ +class ChangeTimeEntriesCommentsLimitTo1024 < ActiveRecord::Migration + def self.up + change_column :time_entries, :comments, :string, :limit => 1024 + end + + def self.down + change_column :time_entries, :comments, :string, :limit => 255 + end +end