Sha256: d4c36d0c335047c7677fefa47589a01263f5091be5c096ef83715c1f2e6ed656

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

class CreateContactsContacts < ActiveRecord::Migration

  def up
    create_table :refinery_contacts do |t|
      t.string :title
      t.string :company
      t.string :street
      t.string :city
      t.string :zip_code
      t.string :province
      t.string :country
      t.string :tel1
      t.string :tel2
      t.string :tel3
      t.string :fax
      t.integer :position

      t.timestamps
    end

  end

  def down
    if defined?(::Refinery::UserPlugin)
      ::Refinery::UserPlugin.destroy_all({:name => "refinerycms-contacts"})
    end

    if defined?(::Refinery::Page)
      ::Refinery::Page.delete_all({:link_url => "/contacts/contacts"})
    end

    drop_table :refinery_contacts

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-contacts-0.2.0 db/migrate/1_create_contacts_contacts.rb
refinerycms-contacts-0.1.2 db/migrate/1_create_contacts_contacts.rb
refinerycms-contacts-0.1.1 db/migrate/1_create_contacts_contacts.rb
refinerycms-contacts-0.1.0 db/migrate/1_create_contacts_contacts.rb