podemos-info/participa2

View on GitHub
db/migrate/20190622161281_create_decidim_forms_answer_choices.decidim_forms.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# This migration comes from decidim_forms (originally 20180405015147)

class CreateDecidimFormsAnswerChoices < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_forms_answer_choices do |t|
      t.references :decidim_answer, index: { name: "index_decidim_forms_answer_choices_answer_id" }
      t.references :decidim_answer_option, index: { name: "index_decidim_forms_answer_choices_answer_option_id" }
      t.integer :position
      t.jsonb :body
      t.text :custom_body
    end
  end
end