Sha256: c126c0228d27a1614d440371b434a23efe753aefc87d868d00ae6b031640c515

Contents?: true

Size: 345 Bytes

Versions: 9

Compression:

Stored size: 345 Bytes

Contents

class CreateContacts < ActiveRecord::Migration
  
  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
  
  def self.down
    drop_table :contacts
    remove_index :pages, :updated_at
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tkh_content-0.1.14 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.13 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.12 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.11 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.10 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.9.3 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.9.2 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.9.1 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb
tkh_content-0.1.9 lib/generators/tkh_content/create_or_update_migrations/templates/create_contacts.rb