Sha256: e914d5c22ac4292fb769d0a9c20a85a36412cd413dd9f103fd68bc9faba949ea

Contents?: true

Size: 245 Bytes

Versions: 14

Compression:

Stored size: 245 Bytes

Contents

class CreateThingWithCompoundIndex < ActiveRecord::Migration[5.2]
  def change
    create_table :thing_with_compound_indices do |t|
      t.string :key
      t.string :value

      t.index [:key, :value], name: "idx_key_value"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-4.0.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-3.1.2 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-3.1.1 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-3.1.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-3.0.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-2.0.1 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-2.0.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.4.3 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.4.1 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.4.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.3.1 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.3.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb
historiographer-1.2.0 spec/db/migrate/20191024142304_create_thing_with_compound_index.rb