Sha256: c5e897dfb655a2906f792b3d7f0e4af0eeed5b8b37060337ed77de1aa51ebf9d
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
class CreateExhibits < ActiveRecord::Migration def change create_table :spotlight_exhibits do |t| t.string :name, null: false # This is for programatic lookup (route key perhaps) t.string :title, null: false t.string :subtitle t.text :description t.text :contact_emails t.references :blacklight_configuration t.timestamps end add_index :spotlight_exhibits, :name, unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.0.2 | db/migrate/20140128155151_create_exhibits.rb |
blacklight-spotlight-0.0.1 | db/migrate/20140128155151_create_exhibits.rb |