OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[32235] Add updated_on column to news
Oliver Günther618e962cf1b5
diff --git a/db/migrate/20200217061622_add_timestamp_to_news.rb b/db/migrate/20200217061622_add_timestamp_to_news.rbnew file mode 100644index 00000000000..ae4a6a3aeda--- /dev/null+++ b/db/migrate/20200217061622_add_timestamp_to_news.rb@@ -0,0 +1,9 @@+class AddTimestampToNews < ActiveRecord::Migration[6.0]+ def change+ add_column :news, :updated_on, :datetime++ reversible do |change|+ change.up { News.update_all("updated_on = created_on") }+ end+ end+end