Sha256: c9cd02d4d96ba454ab421d796ce412e9fb9228d67e63904658d797a7fd989eab
Contents?: true
Size: 765 Bytes
Versions: 72
Compression:
Stored size: 765 Bytes
Contents
class CreateMartyGridIndexIntegers < ActiveRecord::Migration include Marty::Migrations def change table_name = "marty_grid_index_integers" # drop deprecated version execute("DROP TABLE IF EXISTS #{table_name}") create_table table_name do |t| t.datetime :created_dt, null: false t.references :data_grid, null: false t.string :attr, null: false t.integer :key, array: true, null: false t.integer :index, null: false end # FIXME: not sure if this index is appropriate for our queries. # May need to break it up. add_index table_name, [:created_dt, :data_grid_id, :attr], name: "index_#{table_name}" add_index table_name, :key, using: "GIN" add_fk table_name, :data_grids end end
Version data entries
72 entries across 72 versions & 1 rubygems