Sha256: dd4ef007fa2b6c81cdadf58fbb877c068a5f5af34f3c2b9e8aed7faa5639abfe

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

# This migration comes from spotlight (originally 20140128155151)
class CreateExhibits < ActiveRecord::Migration
  def change
    create_table :spotlight_exhibits do |t|
      t.boolean :default
      t.string :title, null: false
      t.string :subtitle
      t.string :slug
      t.text :description
      t.timestamps
    end

    add_index :spotlight_exhibits, :default, unique: true
    add_index :spotlight_exhibits, :slug, 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/20150303163361_create_exhibits.spotlight.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231322_create_exhibits.spotlight.rb
blacklight-spotlight-0.2.0 spec/internal/db/migrate/20150120185720_create_exhibits.spotlight.rb
blacklight-spotlight-0.1.0 spec/internal/db/migrate/20140603144406_create_exhibits.spotlight.rb