Sha256: 334d2ca7138c63bdbeb32f5bf4def4081525254a69ee4ce36c076c2b23df266d

Contents?: true

Size: 617 Bytes

Versions: 4

Compression:

Stored size: 617 Bytes

Contents

# This migration comes from spotlight (originally 20140225180948)
class CreateContactEmails < ActiveRecord::Migration
  def change
    create_table(:spotlight_contact_emails) do |t|
      t.references :exhibit
      t.string     :email, :null => false, :default => ""
      t.string     :confirmation_token
      t.datetime   :confirmed_at
      t.datetime   :confirmation_sent_at
      t.string     :unconfirmed_email
      t.timestamps
    end

    add_index :spotlight_contact_emails, [:email, :exhibit_id], :unique => true
    add_index :spotlight_contact_emails, :confirmation_token,   :unique => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 spec/internal/db/migrate/20150303163370_create_contact_emails.spotlight.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231331_create_contact_emails.spotlight.rb
blacklight-spotlight-0.2.0 spec/internal/db/migrate/20150120185729_create_contact_emails.spotlight.rb
blacklight-spotlight-0.1.0 spec/internal/db/migrate/20140603144415_create_contact_emails.spotlight.rb