- Click Allocate new address in the Elastic IPs page.
- Then, click Allocate in the next page.
- Right-click the row of the newly created elastic IP, and click Associate address.
- Choose the EC2 instance you are integrating.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Attachment < ActiveRecord::Base | |
| mount_uploader :attachment, AttachmentUploader | |
| # Associations | |
| belongs_to :attached_item, polymorphic: true | |
| # Validations | |
| validates_presence_of :attachment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |