Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Decidim-Module-Social_Crowdfunding plugin #84

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ gem "decidim-navigation_maps", "~> 1.2.0"
gem "decidim-templates", DECIDIM_VERSION
# gem "decidim-initiatives", DECIDIM_VERSION
gem "decidim-notify", "~> 0.4.0"
gem "decidim-social_crowdfunding", git: "https://github.com/Platoniq/decidim-module-social_crowdfunding"
gem "decidim-term_customizer", git: "https://github.com/mainio/decidim-module-term_customizer", branch: "0.24-stable"
gem "decidim-time_tracker", git: "https://github.com/Platoniq/decidim-module-time_tracker"

Expand Down
11 changes: 10 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ GIT
decidim-core (= 0.24.3)
redcarpet (~> 3.4)

GIT
remote: https://github.com/Platoniq/decidim-module-social_crowdfunding
revision: e99db3fbc726203095e156261855339c29f2a3b5
specs:
decidim-social_crowdfunding (0.0.1)
decidim-admin (= 0.24.3)
decidim-core (= 0.24.3)

GIT
remote: https://github.com/Platoniq/decidim-module-time_tracker
revision: 80b1ec0c35125607e1f99ca2a589a32d4c160bc3
Expand Down Expand Up @@ -1003,6 +1011,7 @@ DEPENDENCIES
decidim-direct_verifications (~> 0.22)
decidim-navigation_maps (~> 1.2.0)
decidim-notify (~> 0.4.0)
decidim-social_crowdfunding!
decidim-templates!
decidim-term_customizer!
decidim-time_tracker!
Expand All @@ -1029,7 +1038,7 @@ DEPENDENCIES
wicked_pdf (~> 1.4)

RUBY VERSION
ruby 2.7.4p191
ruby 2.7.2p137

BUNDLED WITH
2.2.33
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# frozen_string_literal: true
# This migration comes from decidim_social_crowdfunding (originally 20211125195842)

class CreateDecidimSocialCrowdfundingCampaigns < ActiveRecord::Migration[5.2]
def change
create_table :decidim_social_crowdfunding_campaigns do |t|
t.references :decidim_organization, foreign_key: { to_table: :decidim_organizations }, index: { name: "index_social_crowdfunding_campaigns_on_organization" }

t.jsonb :name
t.jsonb :description

t.string :slug

t.string :url
t.string :lang

t.string :thumbnail_url

t.decimal :amount
t.decimal :minimum
t.decimal :optimum

t.jsonb :data

t.timestamps
end
end
end
20 changes: 19 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2022_02_15_124230) do
ActiveRecord::Schema.define(version: 2022_06_14_084207) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
Expand Down Expand Up @@ -1642,6 +1642,23 @@
t.index ["token_for_type", "token_for_id"], name: "decidim_share_tokens_token_for"
end

create_table "decidim_social_crowdfunding_campaigns", force: :cascade do |t|
t.bigint "decidim_organization_id"
t.jsonb "name"
t.jsonb "description"
t.string "slug"
t.string "url"
t.string "lang"
t.string "thumbnail_url"
t.decimal "amount"
t.decimal "minimum"
t.decimal "optimum"
t.jsonb "data"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["decidim_organization_id"], name: "index_social_crowdfunding_campaigns_on_organization"
end

create_table "decidim_sortitions_sortitions", force: :cascade do |t|
t.bigint "decidim_component_id"
t.integer "decidim_proposals_component_id"
Expand Down Expand Up @@ -2065,6 +2082,7 @@
add_foreign_key "decidim_scopes", "decidim_organizations"
add_foreign_key "decidim_scopes", "decidim_scope_types", column: "scope_type_id"
add_foreign_key "decidim_scopes", "decidim_scopes", column: "parent_id"
add_foreign_key "decidim_social_crowdfunding_campaigns", "decidim_organizations"
add_foreign_key "decidim_static_pages", "decidim_organizations"
add_foreign_key "decidim_term_customizer_constraints", "decidim_organizations"
add_foreign_key "decidim_term_customizer_constraints", "decidim_term_customizer_translation_sets", column: "translation_set_id"
Expand Down