Sha256: fa3031fad2760d152113fbd07f8927ea342a2c664034cc7311c346173a5d020f

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

class CreateContactsMails < ActiveRecord::Migration

  def up
    create_table :refinery_contacts_mails  do |t|
      t.integer :contact_id
      t.string :mail
    end
    add_index :refinery_contacts_mails, :contact_id

  end

  def down
    remove_index :refinery_contacts_mails , :contact_id
    drop_table :refinery_contacts_mails

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-contacts-0.2.0 db/migrate/2_create_contacts_mails.rb
refinerycms-contacts-0.1.2 db/migrate/2_create_contacts_mails.rb
refinerycms-contacts-0.1.1 db/migrate/2_create_contacts_mails.rb
refinerycms-contacts-0.1.0 db/migrate/2_create_contacts_mails.rb