Julian Herrero
65c30c8d2d
Remove migrations warning
...
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration
is deprecated. Please specify the Rails release the migration was
written for:
class MigrationClass < ActiveRecord::Migration[4.2]
(called from require at bin/rails:4)
2019-04-17 17:40:56 +02:00
Julian Herrero
5486835661
Regenerate DB schema
2019-04-17 17:40:56 +02:00
Angel Perez
385784d09d
Fix failing migrations when running rake db:migrate task
...
This patch adds 2 missing colons (:) for 2 migrations that are failing when
the `rake db:migrate` task is ran. Whilst already-committed-to-source-control-
and-ran-on-production-environments migrations shouldn't be modified whatsoever,
this change does not modify in any way the current database schema so, technically,
it shouldn't affect forks that might have ran these migrations already and those
CONSUL installations that haven't done so should be able to without problems
2019-04-17 17:40:56 +02:00
Julian Herrero
f668317cc1
Use #data_source_exists? instead of #table_exists?
...
DEPRECATION WARNING: #table_exists? currently checks both tables and
views. This behavior is deprecated and will be changed with Rails 5.1
to only check tables. Use #data_source_exists? instead.
2019-04-17 17:40:55 +02:00
rgarcia
aeb84108bc
Verify poll ballots
2019-04-10 18:29:01 +02:00
rgarcia
1eaa5cc77b
stores the heading where the user has voted
2019-04-10 18:15:43 +02:00
María Checa
394177213c
Adds Ballot Sheet model and business logic
2019-04-10 16:04:39 +02:00
rgarcia
20a3f6539d
Add association between polls and budgets
2019-04-03 22:19:44 +02:00
Javi Martín
99551e048b
Fix user gender creation
...
We use "male" and "female" conditions in scopes.
2019-03-28 15:50:34 +01:00
Javi Martín
061549c3c3
Use booth voters to create recount in dev seeds
2019-03-28 15:50:34 +01:00
Javi Martín
6ac91dafa8
Include level 3 users in dev seeds poll voters
2019-03-28 15:50:34 +01:00
Javi Martín
db7e8e79b7
Fix voters on booth not being created in dev seeds
...
There were validation errors because they didn't have officer nor booth
assignments.
2019-03-28 15:50:34 +01:00
Javi Martín
e2fa2ecf0d
Avoid outer variable shadowing warning
...
There were two variables named "title", one for the question and one for
the answer.
2019-03-28 15:50:34 +01:00
Javi Martín
4c35df4812
Use double quotes inside string interpolation
2019-03-25 14:58:54 +01:00
Julian Herrero
8e5e757b00
Include default custom pages in developers seed
2019-03-22 12:29:42 +01:00
Julian Herrero
4df9a1a1b4
Move HTML settings to content blocks settings page
...
- Rename html settings keys
- Show html settings next to content blocks page
- Hide html settings from configuration tab
2019-03-19 19:45:34 +01:00
Julian Herrero
89d4ea5aa3
Remove homepage widget settings from configuration tab
...
- Rename homepage widget settings keys
2019-03-19 19:45:34 +01:00
Julian Herrero
c82b2a975a
Add new settings tab for participation processes
...
- Rename setting keys
- New tab por participation processes
- Hide these settings from features tab
2019-03-19 19:45:32 +01:00
Julian Herrero
dbac4bc222
Change admin settings tab for maps
...
- Rename map settings keys
- Add fields for latitude, longitude and zoom
- Add a callout message on how to enable map feature
2019-03-19 18:14:57 +01:00
Julian Herrero
27553e9058
Move setting next to similar/related settings
2019-03-19 15:11:30 +01:00
Julian Herrero
6d281affa5
Use double quotes
2019-03-15 10:29:07 +01:00
Julian Herrero
87be6f302c
Add default site customization pages
...
From now on these static pages:
`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'
have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00
decabeza
e7dd63e264
Fix hound warnigns on seeds
2019-03-13 13:19:17 +01:00
decabeza
e520a51d57
Replace default feature proposals to nil
2019-03-13 13:18:53 +01:00
decabeza
0e1bf2188c
Remove unused verification offices url setting
2019-03-06 13:08:35 +01:00
Alberto
098f4b6c5f
Merge pull request #3328 from consul/admin-settings
...
Improve Admin settings section
2019-02-27 10:49:54 +01:00
decabeza
abdeafc2dd
Fix hound warnings on dev_seeds
2019-02-25 15:34:15 +01:00
decabeza
8066b96fe3
Remove legacy banner images and banner styles settings
2019-02-25 14:59:38 +01:00
decabeza
6fd13c1701
Add missing settings to dev seeds
2019-02-25 14:59:03 +01:00
decabeza
840348a839
Replace legislation processes text to collaborative legislation
2019-02-25 14:22:29 +01:00
decabeza
2e135ca3f1
Remove unused place name setting
2019-02-19 14:08:44 +01:00
decabeza
25c8212e80
Remove proposal improvement path setting
2019-02-19 11:07:58 +01:00
decabeza
ccee843da7
Remove unused settings
...
These settings are customised for Madrid's fork. On CONSUL any user can include new links using site customisation content blocks from admin panel.
2019-02-18 15:40:11 +01:00
Julian Herrero
884274c4ad
Add a description for open polls
2019-02-18 13:34:07 +01:00
Julian Nicolas Herrero
4a12425987
Merge pull request #3296 from consul/make_budgets_translatable
...
[Backport] Make budgets translatable
2019-02-13 19:01:13 +01:00
Julian Herrero
922600252c
Make budget headings translatable
2019-02-13 13:35:07 +01:00
Julian Herrero
1c35ec99c1
Make budget groups translatable
2019-02-13 12:30:37 +01:00
Julian Herrero
90d0a6e416
Make budget phases translatable
2019-02-13 11:44:56 +01:00
Julian Herrero
d76782f150
Make budgets translatable
2019-02-13 11:41:58 +01:00
decabeza
5c44a3b982
Add cached_votes_score to legislation proposals
2019-02-12 18:42:39 +01:00
Alberto
f9b18667e6
Merge pull request #3280 from consul/next-filters
...
[Backport] Removes next/incoming filters
2019-02-11 20:43:09 +01:00
decabeza
bc1679550b
Remove incoming polls filter
2019-02-08 14:28:19 +01:00
Julian Herrero
54e59a8a58
LegacyLegislation migration cleanup
...
These legacy models are not used anymore.
2019-02-06 17:07:38 +01:00
decabeza
da76119752
Increase tag name limit from 40 to 160 chars
2019-02-05 17:41:00 +01:00
decabeza
b8bfccd2ba
Add columns to widget cards
2019-01-31 14:38:14 +01:00
Alberto
41fe1e3922
Merge pull request #3152 from NahiaSolutions/add_image_to_legislation_processes
...
Add image to legislation processes and banner colors
2019-01-29 16:06:54 +01:00
Alberto
bd4826b25e
Merge branch 'master' into add_cards_to_custom_pages
2019-01-28 14:49:39 +01:00
Alberto
c297595e49
Merge branch 'master' into add_image_to_legislation_processes
2019-01-28 14:49:19 +01:00
Javi Martín
0a710a77f2
Add progress bars dev seeds
2019-01-24 12:03:02 +01:00
Javi Martín
7317238382
Reduce the number of locales for milestones seeds
...
Creating records for every locale was taking too long now that CONSUL is
available in 15 languages.
2019-01-24 12:03:02 +01:00