podemos-info/participa2

View on GitHub
db/migrate/20180509103246_create_decidim_survey_questions.decidim_surveys.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# This migration comes from decidim_surveys (originally 20170515090916)

class CreateDecidimSurveyQuestions < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_surveys_survey_questions do |t|
      t.jsonb :body
      t.references :decidim_survey, index: true

      t.timestamps
    end
  end
end