class CreateContacts
Public Class Methods
down()
click to toggle source
# File lib/generators/tkh_mailing_list/create_or_update_migrations/templates/create_contacts.rb, line 14 def self.down drop_table :contacts remove_index :contacts, :updated_at end
up()
click to toggle source
# File lib/generators/tkh_mailing_list/create_or_update_migrations/templates/create_contacts.rb, line 3 def self.up create_table :contacts do |t| t.string :sender_name t.string :sender_email t.text :body t.timestamps end add_index :contacts, :updated_at end