decidim-module-crowdfundings/db/migrate/20171107151211_create_decidim_crowdfundings_campaigns.rb
# frozen_string_literal: true
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