Sha256: a55459c8c3c86e8e58272705ff3be8a3c56e30de7e03f72a0e2dfefd55e93a34
Contents?: true
Size: 226 Bytes
Versions: 2
Compression:
Stored size: 226 Bytes
Contents
class AddIndexToLocks < ActiveRecord::Migration def self.up add_index(:locks, [:resource_name, :key], {:name => "idx_resource_key"}) end def self.down remove_index(:locks, :name => "idx_resource_key") end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apl-library-0.0.90 | db/migrate/20120821102527_add_index_to_locks.rb |
apl-library-0.0.90 | vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/db/migrate/20120821102527_add_index_to_locks.rb |