Sha256: 47e0fc55b076bd658aaa84de0ef96fe5cb35ae92d5f73ca908f96827aec29ceb

Contents?: true

Size: 595 Bytes

Versions: 9

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimNavigationMapsBlueprintAreas < ActiveRecord::Migration[5.2]
  def change
    create_table :decidim_navigation_maps_blueprint_areas do |t|
      t.jsonb :area
      t.references :decidim_navigation_maps_blueprint, null: false, foreign_key: true, index: { name: "decidim_navigation_maps_constraint_blueprint_id" }
      t.jsonb :title, default: {}
      t.jsonb :description, default: {}
      t.string :area_type
      t.string :url

      t.timestamps
    end

    remove_column :decidim_navigation_maps_blueprints, :blueprint, :jsonb
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-navigation_maps-1.3.4 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.3.3 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.3.2 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.3.1 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.3.0 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.2.0 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.1.1 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.1.0 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb
decidim-navigation_maps-1.0.1 db/migrate/20191125142751_create_decidim_navigation_maps_blueprint_areas.rb