From 99e146dd266a7144e01a1569a66baf5dac3c05d5 Mon Sep 17 00:00:00 2001 From: Aitor Lopez Beltran Date: Thu, 23 May 2019 11:46:57 +0200 Subject: [PATCH] Upgrade decidim 0.16.1 (#7) * Upgrade decidim 0.16.1 * Update config/schedule.rb * Add default app time_zone --- Gemfile | 14 +- Gemfile.lock | 266 +++++++++--------- config/application.rb | 3 + config/schedule.rb | 4 + ...ldren_count_counters.decidim_assemblies.rb | 9 + ...14039_use_md5_indexes.decidim_proposals.rb | 18 ++ db/schema.rb | 6 +- 7 files changed, 172 insertions(+), 148 deletions(-) create mode 100644 db/migrate/20190503114038_reset_negative_children_count_counters.decidim_assemblies.rb create mode 100644 db/migrate/20190503114039_use_md5_indexes.decidim_proposals.rb diff --git a/Gemfile b/Gemfile index 1def603..b07afbd 100644 --- a/Gemfile +++ b/Gemfile @@ -2,19 +2,13 @@ source "https://rubygems.org" ruby RUBY_VERSION -DECIDIM_VERSION= '~> 0.16.0' +DECIDIM_VERSION= '~> 0.16.1' gem 'decidim', DECIDIM_VERSION gem 'decidim-initiatives', DECIDIM_VERSION gem 'decidim-consultations', DECIDIM_VERSION -# gem 'decidim', git: "git@github.com:decidim/decidim.git", branch: "0.15-stable" -# gem 'decidim-initiatives', git: "git@github.com:decidim/decidim.git", branch: "0.15-stable" -# gem 'decidim-consultations', git: "git@github.com:decidim/decidim.git", branch: "0.15-stable" -gem 'decidim-file_authorization_handler', git: "https://github.com/CodiTramuntana/decidim-file_authorization_handler.git", ref: "41de957cc4b5c2eab8b8f606b417ecef09e3d1b8" -## Start force versions Gem -gem 'graphiql-rails', '1.4.11' -gem 'graphql', '1.8.10' -## End force versions Gem +gem 'decidim-file_authorization_handler', git: "https://github.com/MarsBased/decidim-file_authorization_handler.git" + gem 'delayed_job_active_record' gem 'daemons' @@ -27,8 +21,6 @@ gem 'figaro', '>= 1.1.1' group :development, :test do gem 'byebug', platform: :mri gem "decidim-dev", DECIDIM_VERSION - # gem "decidim-dev", git: "git@github.com:decidim/decidim.git", branch: "0.14-stable" - # gem 'faker', "~> 1.8.4" gem 'faker', git: 'https://github.com/stympy/faker.git', branch: 'master' end diff --git a/Gemfile.lock b/Gemfile.lock index e630e76..e396459 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,6 @@ GIT - remote: https://github.com/CodiTramuntana/decidim-file_authorization_handler.git - revision: 41de957cc4b5c2eab8b8f606b417ecef09e3d1b8 - ref: 41de957cc4b5c2eab8b8f606b417ecef09e3d1b8 + remote: https://github.com/MarsBased/decidim-file_authorization_handler.git + revision: f01aaa7fcc9518228f7f079ca06c58aada8230c2 specs: decidim-file_authorization_handler (0.15.0) decidim (>= 0.15.0) @@ -63,7 +62,7 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - acts_as_list (0.9.17) + acts_as_list (0.9.19) activerecord (>= 3.0) addressable (2.6.0) public_suffix (>= 2.0.2, < 4.0) @@ -79,13 +78,13 @@ GEM babel-transpiler (0.7.0) babel-source (>= 4.0, < 6) execjs (~> 2.0) - batch-loader (1.2.2) + batch-loader (1.4.0) bcrypt (3.1.12) better_errors (2.5.0) coderay (>= 1.0.0) erubi (>= 1.0.0) rack (>= 0.9.0) - better_html (1.0.11) + better_html (1.0.13) actionview (>= 4.0) activesupport (>= 4.0) ast (~> 2.0) @@ -98,7 +97,7 @@ GEM debug_inspector (>= 0.0.1) builder (3.2.3) byebug (10.0.2) - capybara (3.12.0) + capybara (3.18.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) @@ -121,15 +120,16 @@ GEM cells-rails (0.0.9) actionpack (>= 3.0) cells (>= 4.1.6, < 5.0.0) - childprocess (0.9.0) - ffi (~> 1.0, >= 1.0.11) + charlock_holmes (0.7.6) + childprocess (1.0.1) + rake (< 13.0) chronic (0.10.2) coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) - coffee-rails (4.2.2) + coffee-rails (5.0.0) coffee-script (>= 2.2.0) - railties (>= 4.0.0) + railties (>= 5.2.0) coffee-script (2.4.1) coffee-script-source execjs @@ -138,7 +138,7 @@ GEM crack (0.4.3) safe_yaml (~> 1.0.0) crass (1.0.4) - css_parser (1.6.0) + css_parser (1.7.0) addressable daemons (1.3.1) date_validator (0.9.0) @@ -148,76 +148,77 @@ GEM activesupport (>= 4.0, <= 6.0) rspec (~> 3.0) debug_inspector (0.0.3) - decidim (0.16.0) - decidim-accountability (= 0.16.0) - decidim-admin (= 0.16.0) - decidim-api (= 0.16.0) - decidim-assemblies (= 0.16.0) - decidim-blogs (= 0.16.0) - decidim-budgets (= 0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) - decidim-debates (= 0.16.0) - decidim-forms (= 0.16.0) - decidim-generators (= 0.16.0) - decidim-meetings (= 0.16.0) - decidim-pages (= 0.16.0) - decidim-participatory_processes (= 0.16.0) - decidim-proposals (= 0.16.0) - decidim-sortitions (= 0.16.0) - decidim-surveys (= 0.16.0) - decidim-system (= 0.16.0) - decidim-verifications (= 0.16.0) - decidim-accountability (0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) + decidim (0.16.1) + decidim-accountability (= 0.16.1) + decidim-admin (= 0.16.1) + decidim-api (= 0.16.1) + decidim-assemblies (= 0.16.1) + decidim-blogs (= 0.16.1) + decidim-budgets (= 0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) + decidim-debates (= 0.16.1) + decidim-forms (= 0.16.1) + decidim-generators (= 0.16.1) + decidim-meetings (= 0.16.1) + decidim-pages (= 0.16.1) + decidim-participatory_processes (= 0.16.1) + decidim-proposals (= 0.16.1) + decidim-sortitions (= 0.16.1) + decidim-surveys (= 0.16.1) + decidim-system (= 0.16.1) + decidim-verifications (= 0.16.1) + decidim-accountability (0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) kaminari (~> 1.0) searchlight (~> 4.1) - decidim-admin (0.16.0) + decidim-admin (0.16.1) active_link_to (~> 1.0) - decidim-core (= 0.16.0) + decidim-core (= 0.16.1) devise (~> 4.2) devise-i18n (~> 1.2) devise_invitable (~> 1.7) jquery-rails (~> 4.3) sassc (~> 1.12, >= 1.12.1) sassc-rails (~> 1.3) - decidim-api (0.16.0) + decidim-api (0.16.1) graphiql-rails (~> 1.4, < 1.5) graphql (~> 1.6, < 1.8.11) rack-cors (~> 1.0) sprockets-es6 (~> 0.9.2) - decidim-assemblies (0.16.0) - decidim-core (= 0.16.0) - decidim-blogs (0.16.0) - decidim-admin (= 0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) + decidim-assemblies (0.16.1) + decidim-core (= 0.16.1) + decidim-blogs (0.16.1) + decidim-admin (= 0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) httparty (~> 0.16.0) jquery-tmpl-rails (~> 1.1) kaminari (~> 1.0) - decidim-budgets (0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) + decidim-budgets (0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) kaminari (~> 1.0) searchlight (~> 4.1) - decidim-comments (0.16.0) - decidim-core (= 0.16.0) + decidim-comments (0.16.1) + decidim-core (= 0.16.1) jquery-rails (~> 4.0) - decidim-consultations (0.16.0) - decidim-admin (= 0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) - decidim-core (0.16.0) + decidim-consultations (0.16.1) + decidim-admin (= 0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) + decidim-core (0.16.1) active_link_to (~> 1.0) autoprefixer-rails (~> 8.0) batch-loader (~> 1.2) carrierwave (~> 1.1) cells-erb (~> 0.1.0) cells-rails (~> 0.0.9) + charlock_holmes (>= 0.7.6) date_validator (~> 0.9.0) - decidim-api (= 0.16.0) - devise (~> 4.3) + decidim-api (= 0.16.1) + devise (~> 4.6) devise-i18n (~> 1.2) doorkeeper (~> 4.4) doorkeeper-i18n (~> 4.0) @@ -257,16 +258,16 @@ GEM uglifier (~> 4.0) valid_email2 (~> 2.1) wisper (~> 2.0) - decidim-debates (0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) + decidim-debates (0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) kaminari (~> 1.0) searchlight (~> 4.1) - decidim-dev (0.16.0) + decidim-dev (0.16.1) byebug (~> 10.0) capybara (~> 3.0) db-query-matchers (~> 0.9.0) - decidim (= 0.16.0) + decidim (= 0.16.1) erb_lint (~> 0.0.22) factory_bot_rails (~> 4.8) i18n-tasks (~> 0.9.18) @@ -285,63 +286,63 @@ GEM system_test_html_screenshots (~> 0.1.1) webmock (~> 3.0) wisper-rspec (~> 1.0) - decidim-forms (0.16.0) - decidim-core (= 0.16.0) - decidim-generators (0.16.0) - decidim-core (= 0.16.0) - decidim-initiatives (0.16.0) - decidim-admin (= 0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) - decidim-verifications (= 0.16.0) + decidim-forms (0.16.1) + decidim-core (= 0.16.1) + decidim-generators (0.16.1) + decidim-core (= 0.16.1) + decidim-initiatives (0.16.1) + decidim-admin (= 0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) + decidim-verifications (= 0.16.1) kaminari (~> 1.0) social-share-button (~> 1.0) wicked (~> 1.3) - decidim-meetings (0.16.0) + decidim-meetings (0.16.1) cells-erb (~> 0.1.0) cells-rails (~> 0.0.9) - decidim-core (= 0.16.0) - decidim-forms (= 0.16.0) + decidim-core (= 0.16.1) + decidim-forms (= 0.16.1) httparty (~> 0.16.0) icalendar (~> 2.4) jquery-tmpl-rails (~> 1.1) kaminari (~> 1.0) searchlight (~> 4.1) - decidim-pages (0.16.0) - decidim-core (= 0.16.0) - decidim-participatory_processes (0.16.0) - decidim-core (= 0.16.0) - decidim-proposals (0.16.0) + decidim-pages (0.16.1) + decidim-core (= 0.16.1) + decidim-participatory_processes (0.16.1) + decidim-core (= 0.16.1) + decidim-proposals (0.16.1) acts_as_list (>= 0.9) cells-erb (~> 0.1.0) cells-rails (~> 0.0.9) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) - doc2text (>= 0.3.3) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) + doc2text (>= 0.4.0) kaminari (~> 1.0) ransack (~> 2.0) redcarpet (>= 3.4) social-share-button (~> 1.0) - decidim-sortitions (0.16.0) - decidim-admin (= 0.16.0) - decidim-comments (= 0.16.0) - decidim-core (= 0.16.0) - decidim-proposals (= 0.16.0) + decidim-sortitions (0.16.1) + decidim-admin (= 0.16.1) + decidim-comments (= 0.16.1) + decidim-core (= 0.16.1) + decidim-proposals (= 0.16.1) social-share-button (~> 1.0) - decidim-surveys (0.16.0) - decidim-core (= 0.16.0) - decidim-forms (= 0.16.0) - decidim-system (0.16.0) + decidim-surveys (0.16.1) + decidim-core (= 0.16.1) + decidim-forms (= 0.16.1) + decidim-system (0.16.1) active_link_to (~> 1.0) - decidim-core (= 0.16.0) + decidim-core (= 0.16.1) devise (~> 4.2) devise-i18n (~> 1.2) devise_invitable (~> 1.7) jquery-rails (~> 4.3) sassc (~> 1.12, >= 1.12.1) sassc-rails (~> 1.3) - decidim-verifications (0.16.0) - decidim-core (= 0.16.0) + decidim-verifications (0.16.1) + decidim-core (= 0.16.1) declarative-builder (0.1.0) declarative-option (< 0.2.0) declarative-option (0.1.0) @@ -352,19 +353,19 @@ GEM delayed_job (>= 3.0, < 5) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) - devise (4.5.0) + devise (4.6.2) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0, < 6.0) responders warden (~> 1.2.3) - devise-i18n (1.7.1) - devise (>= 4.5) + devise-i18n (1.8.0) + devise (>= 4.6) devise_invitable (1.7.5) actionmailer (>= 4.1.0) devise (>= 4.0.0) diff-lcs (1.3) - doc2text (0.4.0) + doc2text (0.4.1) nokogiri (~> 1.8, >= 1.8.2) rubyzip (~> 1.2, >= 1.2.2) docile (1.3.1) @@ -410,26 +411,26 @@ GEM activesupport (>= 4.1, < 6.0) railties (>= 4.1, < 6.0) tzinfo (~> 1.2, >= 1.2.2) - geocoder (1.5.0) + geocoder (1.5.1) globalid (0.4.2) activesupport (>= 4.2.0) graphiql-rails (1.4.11) railties sprockets-rails graphql (1.8.10) - hashdiff (0.3.8) + hashdiff (0.3.9) hashie (3.6.0) - highline (2.0.0) + highline (2.0.2) html_tokenizer (0.0.7) htmlentities (4.3.4) http-cookie (1.0.3) domain_name (~> 0.5) - httparty (0.16.3) + httparty (0.16.4) mime-types (~> 3.0) multi_xml (>= 0.5.2) i18n (1.5.2) concurrent-ruby (~> 1.0) - i18n-tasks (0.9.28) + i18n-tasks (0.9.29) activesupport (>= 4.0.2) ast (>= 2.1.0) erubi @@ -439,7 +440,7 @@ GEM rails-i18n rainbow (>= 2.2.2, < 4.0) terminal-table (>= 1.5.1) - icalendar (2.5.2) + icalendar (2.5.3) ice_cube (~> 0.16) ice_cube (0.16.3) ice_nine (0.11.2) @@ -452,7 +453,7 @@ GEM thor (>= 0.14, < 2.0) jquery-tmpl-rails (1.1.0) rails (>= 3.1.0) - json (2.1.0) + json (2.2.0) jwt (2.1.0) kaminari (1.1.1) activesupport (>= 4.1.0) @@ -493,9 +494,9 @@ GEM method_source (0.9.2) mime-types (3.2.2) mime-types-data (~> 3.2015) - mime-types-data (3.2018.0812) + mime-types-data (3.2019.0331) mimemagic (0.3.3) - mini_magick (4.9.2) + mini_magick (4.9.3) mini_mime (1.0.1) mini_portile2 (2.4.0) minitest (5.11.3) @@ -542,14 +543,13 @@ GEM paper_trail-association_tracking (< 2) request_store (~> 1.1) paper_trail-association_tracking (1.1.1) - parallel (1.13.0) - parser (2.6.0.0) + parallel (1.17.0) + parser (2.6.3.0) ast (~> 2.4.0) pg (1.1.4) - pg_search (2.1.3) + pg_search (2.1.7) activerecord (>= 4.2) activesupport (>= 4.2) - arel (>= 6) powerpack (0.1.2) premailer (1.11.1) addressable @@ -563,7 +563,7 @@ GEM rack (2.0.6) rack-attack (5.4.2) rack (>= 1.0, < 3) - rack-cors (1.0.2) + rack-cors (1.0.3) rack-test (1.1.0) rack (>= 1.0, < 3) rails (5.2.2) @@ -588,7 +588,7 @@ GEM nokogiri (>= 1.6) rails-html-sanitizer (1.0.4) loofah (~> 2.2, >= 2.2.2) - rails-i18n (5.1.2) + rails-i18n (5.1.3) i18n (>= 0.7, < 2) railties (>= 5.0, < 6) railties (5.2.2) @@ -615,12 +615,12 @@ GEM wisper (>= 1.6.1) redcarpet (3.4.0) redis (4.1.0) - regexp_parser (1.3.0) + regexp_parser (1.4.0) request_store (1.4.1) rack (>= 1.4) - responders (2.4.0) - actionpack (>= 4.2.0, < 5.3) - railties (>= 4.2.0, < 5.3) + responders (2.4.1) + actionpack (>= 4.2.0, < 6.0) + railties (>= 4.2.0, < 6.0) rest-client (2.0.2) http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) @@ -634,7 +634,7 @@ GEM rspec-rails (~> 3.2) rspec-core (3.8.0) rspec-support (~> 3.8.0) - rspec-expectations (3.8.2) + rspec-expectations (3.8.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.8.0) rspec-html-matchers (0.9.1) @@ -664,11 +664,11 @@ GEM unicode-display_width (~> 1.0, >= 1.0.1) rubocop-rspec (1.30.0) rubocop (>= 0.58.0) - ruby-ole (1.2.12.1) + ruby-ole (1.2.12.2) ruby-progressbar (1.10.0) ruby_dep (1.5.0) rubyzip (1.2.2) - safe_yaml (1.0.4) + safe_yaml (1.0.5) sass (3.4.25) sassc (1.12.1) ffi (~> 1.9.6) @@ -681,8 +681,8 @@ GEM sprockets-rails tilt searchlight (4.1.0) - selenium-webdriver (3.141.0) - childprocess (~> 0.5) + selenium-webdriver (3.142.0) + childprocess (>= 0.5, < 2.0) rubyzip (~> 1.2, >= 1.2.2) simplecov (0.16.1) docile (~> 1.1) @@ -692,7 +692,7 @@ GEM smart_properties (1.13.1) social-share-button (1.2.0) coffee-rails - spreadsheet (1.1.8) + spreadsheet (1.2.3) ruby-ole (>= 1.0) spring (2.0.2) activesupport (>= 4.2) @@ -710,9 +710,9 @@ GEM actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) - system_test_html_screenshots (0.1.1) - actionpack (>= 5.2, < 6.0.x) - temple (0.8.0) + system_test_html_screenshots (0.1.2) + actionpack (>= 5.2, < 6.0.a) + temple (0.8.1) terminal-table (1.8.0) unicode-display_width (~> 1.1, >= 1.1.1) thor (0.20.3) @@ -729,8 +729,8 @@ GEM execjs (>= 0.3.0, < 3) unf (0.1.4) unf_ext - unf_ext (0.0.7.5) - unicode-display_width (1.4.1) + unf_ext (0.0.7.6) + unicode-display_width (1.5.0) valid_email2 (2.3.1) activemodel (>= 3.2) mail (~> 2.5) @@ -770,16 +770,14 @@ DEPENDENCIES binding_of_caller byebug daemons - decidim (~> 0.16.0) - decidim-consultations (~> 0.16.0) - decidim-dev (~> 0.16.0) + decidim (~> 0.16.1) + decidim-consultations (~> 0.16.1) + decidim-dev (~> 0.16.1) decidim-file_authorization_handler! - decidim-initiatives (~> 0.16.0) + decidim-initiatives (~> 0.16.1) delayed_job_active_record faker! figaro (>= 1.1.1) - graphiql-rails (= 1.4.11) - graphql (= 1.8.10) letter_opener_web (~> 1.3.0) listen (~> 3.1.0) puma (~> 3.0) @@ -793,4 +791,4 @@ RUBY VERSION ruby 2.5.1p57 BUNDLED WITH - 1.17.1 + 1.17.3 diff --git a/config/application.rb b/config/application.rb index a3abec1..7dac77b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,6 +13,9 @@ class Application < Rails::Application config.active_job.queue_adapter = :delayed_job + # Default app time zone + config.time_zone = 'Madrid' + # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. diff --git a/config/schedule.rb b/config/schedule.rb index feaf50d..5b7f581 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -4,6 +4,10 @@ rake "decidim:delete_data_portability_files" end +every :sunday, at: '5:00 am' do + rake "decidim:open_data:export" +end + every 1.day, at: '2:00 am' do rake "decidim:metrics:all" end diff --git a/db/migrate/20190503114038_reset_negative_children_count_counters.decidim_assemblies.rb b/db/migrate/20190503114038_reset_negative_children_count_counters.decidim_assemblies.rb new file mode 100644 index 0000000..67ebc0b --- /dev/null +++ b/db/migrate/20190503114038_reset_negative_children_count_counters.decidim_assemblies.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true +# This migration comes from decidim_assemblies (originally 20190215093700) + +class ResetNegativeChildrenCountCounters < ActiveRecord::Migration[5.2] + def change + ids = Decidim::Assembly.where("children_count < 0").pluck(:id) + ids.each { |id| Decidim::Assembly.reset_counters(id, :children_count) } + end +end diff --git a/db/migrate/20190503114039_use_md5_indexes.decidim_proposals.rb b/db/migrate/20190503114039_use_md5_indexes.decidim_proposals.rb new file mode 100644 index 0000000..e230881 --- /dev/null +++ b/db/migrate/20190503114039_use_md5_indexes.decidim_proposals.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true +# This migration comes from decidim_proposals (originally 20190215113158) + +class UseMd5Indexes < ActiveRecord::Migration[5.2] + def up + remove_index :decidim_proposals_proposals, name: "decidim_proposals_proposal_title_search" + remove_index :decidim_proposals_proposals, name: "decidim_proposals_proposal_body_search" + execute "CREATE INDEX decidim_proposals_proposal_title_search ON decidim_proposals_proposals(md5(title::text))" + execute "CREATE INDEX decidim_proposals_proposal_body_search ON decidim_proposals_proposals(md5(body::text))" + end + + def down + remove_index :decidim_proposals_proposals, name: "decidim_proposals_proposal_title_search" + remove_index :decidim_proposals_proposals, name: "decidim_proposals_proposal_body_search" + add_index :decidim_proposals_proposals, :title, name: "decidim_proposals_proposal_title_search" + add_index :decidim_proposals_proposals, :body, name: "decidim_proposals_proposal_body_search" + end +end diff --git a/db/schema.rb b/db/schema.rb index 8998ef9..dabe8d3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_01_18_101281) do +ActiveRecord::Schema.define(version: 2019_05_03_114039) do # These are extensions that must be enabled in order to support this database enable_extension "ltree" @@ -1118,14 +1118,14 @@ t.integer "position" t.string "participatory_text_level" t.boolean "created_in_meeting", default: false - t.index ["body"], name: "decidim_proposals_proposal_body_search" + t.index "md5(body)", name: "decidim_proposals_proposal_body_search" + t.index "md5(title)", name: "decidim_proposals_proposal_title_search" t.index ["created_at"], name: "index_decidim_proposals_proposals_on_created_at" t.index ["decidim_component_id"], name: "index_decidim_proposals_proposals_on_decidim_component_id" t.index ["decidim_scope_id"], name: "index_decidim_proposals_proposals_on_decidim_scope_id" t.index ["proposal_endorsements_count"], name: "idx_decidim_proposals_proposals_on_proposal_endorsemnts_count" t.index ["proposal_votes_count"], name: "index_decidim_proposals_proposals_on_proposal_votes_count" t.index ["state"], name: "index_decidim_proposals_proposals_on_state" - t.index ["title"], name: "decidim_proposals_proposal_title_search" end create_table "decidim_reports", id: :serial, force: :cascade do |t|