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

Version Path
marty-14.3.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-14.0.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-13.0.2 db/migrate/508_add_not_to_data_grids_tables.rb
marty-11.0.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-10.0.3 db/migrate/508_add_not_to_data_grids_tables.rb
marty-10.0.2 db/migrate/508_add_not_to_data_grids_tables.rb
marty-10.0.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-9.5.1 db/migrate/508_add_not_to_data_grids_tables.rb
marty-9.5.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-9.3.3 db/migrate/508_add_not_to_data_grids_tables.rb
marty-9.3.2 db/migrate/508_add_not_to_data_grids_tables.rb
marty-9.3.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-8.5.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-8.4.1 db/migrate/508_add_not_to_data_grids_tables.rb
marty-8.3.1 db/migrate/508_add_not_to_data_grids_tables.rb
marty-8.2.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-8.0.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-6.1.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-5.2.0 db/migrate/508_add_not_to_data_grids_tables.rb
marty-5.1.4 db/migrate/508_add_not_to_data_grids_tables.rb