Sha256: 6404a0d7fcab6805c07ec67c69388bfab1bc058deb1110183a98b15b9b249be0

Contents?: true

Size: 444 Bytes

Versions: 4

Compression:

Stored size: 444 Bytes

Contents

class CreateContactPages < ActiveRecord::Migration

  def up
    create_table :refinery_contact_pages do |t|
      t.integer :contact_id
      t.integer :page_id
      t.string  :page_type, :default => "Refinery::Page"
      t.boolean :contact_info, :default=> false
    end

    add_index :refinery_contact_pages, :contact_id
    add_index :refinery_contact_pages, :page_id

  end

  def down
    drop_table :refinery_contact_pages
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-contacts-0.2.0 db/migrate/3_create_contact_pages.rb
refinerycms-contacts-0.1.2 db/migrate/3_create_contact_pages.rb
refinerycms-contacts-0.1.1 db/migrate/3_create_contact_pages.rb
refinerycms-contacts-0.1.0 db/migrate/3_create_contact_pages.rb