adds max_votes_for_debate_edit setting to dev_seeds
This commit is contained in:
@@ -9,6 +9,7 @@ Setting.create(key: 'official_level_3_name', value: 'Directores generales')
|
|||||||
Setting.create(key: 'official_level_4_name', value: 'Concejales')
|
Setting.create(key: 'official_level_4_name', value: 'Concejales')
|
||||||
Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')
|
Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')
|
||||||
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
||||||
|
Setting.create(key: 'max_votes_for_debate_edit', value: '1000')
|
||||||
Setting.create(key: 'max_votes_for_proposal_edit', value: '1000')
|
Setting.create(key: 'max_votes_for_proposal_edit', value: '1000')
|
||||||
Setting.create(key: 'proposal_code_prefix', value: 'MAD')
|
Setting.create(key: 'proposal_code_prefix', value: 'MAD')
|
||||||
Setting.create(key: 'votes_for_proposal_success', value: '100')
|
Setting.create(key: 'votes_for_proposal_success', value: '100')
|
||||||
@@ -198,8 +199,3 @@ puts "Confirming hiding in debates, comments & proposals"
|
|||||||
Comment.only_hidden.flagged.reorder("RANDOM()").limit(10).each(&:confirm_hide)
|
Comment.only_hidden.flagged.reorder("RANDOM()").limit(10).each(&:confirm_hide)
|
||||||
Debate.only_hidden.flagged.reorder("RANDOM()").limit(5).each(&:confirm_hide)
|
Debate.only_hidden.flagged.reorder("RANDOM()").limit(5).each(&:confirm_hide)
|
||||||
Proposal.only_hidden.flagged.reorder("RANDOM()").limit(5).each(&:confirm_hide)
|
Proposal.only_hidden.flagged.reorder("RANDOM()").limit(5).each(&:confirm_hide)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')
|
|||||||
# Max percentage of allowed anonymous votes on a debate
|
# Max percentage of allowed anonymous votes on a debate
|
||||||
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
||||||
|
|
||||||
# Max votes where a proposal is still editable
|
|
||||||
Setting.create(key: 'max_votes_for_proposal_edit', value: '1000')
|
|
||||||
|
|
||||||
# Max votes where a debate is still editable
|
# Max votes where a debate is still editable
|
||||||
Setting.create(key: 'max_votes_for_debate_edit', value: '1000')
|
Setting.create(key: 'max_votes_for_debate_edit', value: '1000')
|
||||||
|
|
||||||
|
# Max votes where a proposal is still editable
|
||||||
|
Setting.create(key: 'max_votes_for_proposal_edit', value: '1000')
|
||||||
|
|
||||||
# Prefix for the Proposal codes
|
# Prefix for the Proposal codes
|
||||||
Setting.create(key: 'proposal_code_prefix', value: 'MAD')
|
Setting.create(key: 'proposal_code_prefix', value: 'MAD')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user