Sha256: 1639c4e267f11710bd6ca2c7ad732dc49a74e6d262694622f7fe2fa7c7380346

Contents?: true

Size: 290 Bytes

Versions: 110

Compression:

Stored size: 290 Bytes

Contents

class CreateLocks < ActiveRecord::Migration[4.2]
  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

110 entries across 110 versions & 1 rubygems

Version Path
blacklight-spotlight-4.0.1 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-4.0.0 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta10 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta9 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta8 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.5.0.4 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta7 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.5.0.3 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta6 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta5 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta4 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta3 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.6.0.beta1 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.5.0.2 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.5.0.1 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.5.0 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.4.4.1 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.4.4 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.4.3 db/migrate/20141117111311_create_locks.rb
blacklight-spotlight-3.4.2.2 db/migrate/20141117111311_create_locks.rb