podemos-info/participa2

View on GitHub
db/migrate/20180509103302_create_decidim_gravity_forms_gravity_forms.decidim_gravity_forms.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# This migration comes from decidim_gravity_forms (originally 20180208163550)

class CreateDecidimGravityFormsGravityForms < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_gravity_forms_gravity_forms do |t|
      t.jsonb :title, null: false
      t.jsonb :description
      t.integer :form_number, null: false
      t.string :slug, null: false
      t.boolean :require_login, default: true, null: false
      t.references :decidim_component, index: { name: :index_decidim_gravity_forms_on_decidim_component_id }

      t.timestamps
    end
  end
end