podemos-info/participa2

View on GitHub
db/migrate/20180509103291_create_decidim_crowdfundings_campaigns.decidim_crowdfundings.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# This migration comes from decidim_crowdfundings (originally 20171107151211)

class CreateDecidimCrowdfundingsCampaigns < ActiveRecord::Migration[5.1]
  def change
    create_table :decidim_crowdfundings_campaigns do |t|
      t.jsonb :title
      t.jsonb :description
      t.integer :default_amount
      t.integer :maximum_authorized_amount
      t.integer :target_amount
      t.decimal :total_collected, precision: 11, scale: 2
      t.date :active_until
      t.references :decidim_component, index: { name: "decidim_crowdfundings_component_index" }

      t.timestamps
    end
  end
end