Sha256: 6b7e4a9ba660379cd187bbd4f13bb669acf667f9d4c8511ca36eba1babb3da47
Contents?: true
Size: 761 Bytes
Versions: 94
Compression:
Stored size: 761 Bytes
Contents
class CreateMartyGridIndexNumranges < ActiveRecord::Migration[4.2] include Marty::Migrations def change table_name = "marty_grid_index_numranges" # 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.numrange :key, 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: "GIST" add_fk table_name, :data_grids end end
Version data entries
94 entries across 94 versions & 1 rubygems