Class: CreateEmailLogs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateEmailLogs
- Defined in:
- lib/generators/templates/create_email_logs.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
15 16 17 |
# File 'lib/generators/templates/create_email_logs.rb', line 15 def down drop_table :email_logs end |
#up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/templates/create_email_logs.rb', line 2 def up create_table :email_logs do |t| t.string :to t.string :from t.string :subject t.text :body t.datetime :created_at end add_index :email_logs, :to add_index :email_logs, :from end |