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
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/templates/create_email_logs.rb', line 2 def change 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 |