Sha256: 10b1748f0bd88ac64cfe742a912bbe88e5bcd719ab2c76e2891441f8eb2a7e27

Contents?: true

Size: 360 Bytes

Versions: 90

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

class CreateDecidimAreas < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_areas do |t|
      t.jsonb :name
      t.references :area_type, foreign_key: { to_table: :decidim_area_types }, index: true
      t.references :decidim_organization, foreign_key: true, index: true
      t.timestamps
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
decidim-core-0.13.0 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.12.1 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.13.0.pre1 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.12.0 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.11.2 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.12.0.pre db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.11.1 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.11.0.pre1 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.10.1 db/migrate/20180215104945_create_decidim_areas.rb
decidim-core-0.10.0 db/migrate/20180215104945_create_decidim_areas.rb