db/migrate/20180509103135_create_decidim_areas.decidim.rb
# 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