Sha256: b0310773dc45ffafe5dfcf83cc9d48501a7d38fee22815aee07927c9c34853c2
Contents?: true
Size: 334 Bytes
Versions: 23
Compression:
Stored size: 334 Bytes
Contents
class AddIndexesToApiToken < ActiveRecord::Migration def up add_index :api_tokens, :token add_index :api_tokens, [ :tokenable_id, :tokenable_type ], length: { tokenable_id: 16 } end def down remove_index :api_tokens, column: :token remove_index :api_tokens, column: [ :tokenable_id, :tokenable_type ] end end
Version data entries
23 entries across 23 versions & 1 rubygems