Skip to content

Commit

Permalink
increased default limit of content column; closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeb committed Feb 13, 2012
1 parent 16a446a commit 0ee42bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -21,21 +21,26 @@ Rails 3.1+
## Installation

Add to your project's Gemfile:

```
gem 'mailhopper'
```

Install with bundler:

```
bundle install
```

Generate default initializer and migration files:

```
rails generate mailhopper
```

Migrate your database:
*Before migrating your database, please take a moment to review the `CreateEmails` migration that has been generated.* In particular, please review the limit to the `content` field, which has been set to a safe but very large size (100MB characters). You may wish to change this based upon your needs and particular database.

When you're ready, migrate your database:

```
rake db:migrate
Expand Down
Expand Up @@ -16,7 +16,12 @@ def self.up
:cc_address,
:bcc_address

t.text :content
# The content field must be large enough to include the full content of emails, including any attachments. If you
# do not plan to send any attachments or long emails, you could leave off this limit. In MySQL, this will result
# in a TEXT column with a limit of 64KB characters. Otherwise, 100MB characters seems a safe limit for almost any
# email. In MySQL, this will result in the creation of a LONGTEXT column with an actual limit of 4GB characters.

t.text :content, :limit => 100.megabytes

t.datetime :sent_at
t.timestamps
Expand Down

0 comments on commit 0ee42bc

Please sign in to comment.