discourse/plugins/poll/db/migrate
Jarek Radosz babbebfb35
FEATURE: Add the title attribute to polls (#10759)
Adds an optional title attribute to polls. The rationale for this addition is that polls themselves didn't contain context/question and relied on post body to explain them. That context wasn't always obvious (e.g. when there are multiple polls in a single post) or available (e.g. when you display the poll breakdown - you see the answers, but not the question)

As a side note, here's a word on how the poll plugin works:

> We have a markdown poll renderer, which we use in the builder UI and the composer preview, but… when you submit a post, raw markdown is cooked into html (twice), then we extract data from the generated html and save it to the database. When it's render time, we first display the cooked html poll, and then extract some data from that html, get the data from the post's JSON (and identify that poll using the extracted html stuff) to then render the poll using widgets and the JSON data.
2020-10-02 09:21:24 +02:00
..
20150501152228_rename_total_votes_to_voters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
20151016163051_merge_polls_votes.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
20160321164925_close_polls_in_closed_topics.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
20180820073549_create_polls_tables.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
20191114160613_add_graph_to_polls.rb FEATURE: Pie chart option for poll results (#8352) 2019-11-25 11:51:01 -06:00
20191206123012_add_group_name_to_polls.rb FEATURE: Add 'groups' option to polls (#8469) 2020-01-28 14:30:04 +02:00
20200804144550_add_title_to_polls.rb FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00