Sha256: d398e7ef5a1d9cbdfd720d4b2824e950d4a417aa1d01bd4e914841855cff4c70
Contents?: true
Size: 472 Bytes
Versions: 24
Compression:
Stored size: 472 Bytes
Contents
class AddNotToDataGridsTables < ActiveRecord::Migration[5.1] include Marty::Migrations TABLES = { marty_grid_index_booleans: :btree, marty_grid_index_int4ranges: :gist, marty_grid_index_integers: :gin, marty_grid_index_numranges: :gist, marty_grid_index_strings: :gin } def change TABLES.each do |table, index_type| add_column table, :not, :boolean, null: false, default: false add_index table, [:not, :key] end end end
Version data entries
24 entries across 24 versions & 1 rubygems