Class: CreateDigestEmailItems
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDigestEmailItems
- Defined in:
- lib/generators/digest_email/templates/create_digest_email_items.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/generators/digest_email/templates/create_digest_email_items.rb', line 14 def self.down drop_table :digest_email_items end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/digest_email/templates/create_digest_email_items.rb', line 2 def self.up create_table :digest_email_items do |t| t.integer :digest_email_group_id t.text :payload t.text :object t.datetime :sent_at t.string :send_to t. end end |