Sha256: e23808f586b96e811751b1c4a9d32014f8e5f9c9bc98e60efcdbb6d2e1f0fc8a

Contents?: true

Size: 765 Bytes

Versions: 3

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

class CreateAccountabilityResults < ActiveRecord::Migration[5.0]
  def change
    create_table :decidim_accountability_results do |t|
      t.jsonb :title
      t.jsonb :description
      t.string :reference
      t.date :start_date
      t.date :end_date
      t.decimal :progress, precision: 5, scale: 2
      t.string :external_id, index: true
      t.references :parent, index: { name: :decidim_accountability_results_on_parent_id }
      t.references :decidim_accountability_status, index: { name: :decidim_accountability_results_on_status_id }
      t.references :decidim_feature, index: true
      t.references :decidim_scope, index: true
      t.references :decidim_category, index: true

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-accountability-0.1.2 db/migrate/20170426104125_create_accountability_results.rb
decidim-accountability-0.1.1 db/migrate/20170426104125_create_accountability_results.rb
decidim-accountability-0.1.0 db/migrate/20170426104125_create_accountability_results.rb