Sha256: 18557af64d4936f7131e80ee6b6a1aadb3ab742fd8941e8a18c9507907532293

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

# This migration comes from spotlight (originally 20141117111311)
class CreateLocks < ActiveRecord::Migration
  def change
    create_table :spotlight_locks do |t|
      t.references :on, polymorphic: true
      t.references :by, polymorphic: true
      t.timestamps
    end

    add_index :spotlight_locks, [:on_id, :on_type], unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 spec/internal/db/migrate/20150303163374_create_locks.spotlight.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231335_create_locks.spotlight.rb
blacklight-spotlight-0.2.0 spec/internal/db/migrate/20150120185733_create_locks.spotlight.rb