podemos-info/participa2

View on GitHub
db/migrate/20180509103135_create_decidim_areas.decidim.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# This migration comes from decidim (originally 20180215104945)

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