vestal-versions

Versioned associations using vestal_versions?

半城伤御伤魂 提交于 2020-01-13 14:58:32
问题 I'd like to be sure if vestal_versions does support versioned associations (it seems like it doesn't) before switching out to another versioning gem that can support versioned associations e.g => has_versioning. I haven't looked at the code yet but I couldn't find anything related with versioned associations from the readme file or the issue section on github. Help would be appreciated! 回答1: (At the moment of writing this) There is an associations branch in the official vestal_versions

Rails 3.2 app - Should I use a versioning gem (paper_trail or vestal_versions) or handle it manually?

梦想与她 提交于 2019-12-22 07:37:21
问题 My question: Should I roll my own model versioning or use one of the versioning gems that's already out there? If I should use a gem, which one seems best for this application? Info about my app My app is a simple Checklist app. There are Checklists and Jobs, and I track user responses with Responses and Submissions. The Response tells me what the use said ("Done", with a note "We need more mops.") and the Submission tells me when that particular Checklist was filled out (because there may be

Versioning of Models in Ruby on Rails

回眸只為那壹抹淺笑 提交于 2019-12-18 11:08:17
问题 I'm looking for a plugin/act to allow versioning of my models. It's kind of difficult to find a list of the available solutions. So far I gathered: acts_as_versioned simply_versioned vestal_versions The last two solutions only require a single version table - this sounds nice, but I've got a bad feeling about how the ease of migrations will be affacted by this (because they serialize states as a string). On the other hand, acts_as_versioned is a little bit dusty (last commit in January). Are

how to insert user_id,user_name,user_type with vestal versions?

≯℡__Kan透↙ 提交于 2019-12-11 07:35:13
问题 how to insert user_id,user_name,user_type with vestal versions into the versions table ? class Page < ActiveRecord::Base versioned end 回答1: You need to add a field to your versioned model, :updated_by, then the plugin will do the rest. So for example, @page.update_attributes(:body => "some cool content", :updated_by => current_user) 来源: https://stackoverflow.com/questions/5778088/how-to-insert-user-id-user-name-user-type-with-vestal-versions

Rails 3.2 app - Should I use a versioning gem (paper_trail or vestal_versions) or handle it manually?

情到浓时终转凉″ 提交于 2019-12-05 09:18:56
My question: Should I roll my own model versioning or use one of the versioning gems that's already out there? If I should use a gem, which one seems best for this application? Info about my app My app is a simple Checklist app. There are Checklists and Jobs, and I track user responses with Responses and Submissions. The Response tells me what the use said ("Done", with a note "We need more mops.") and the Submission tells me when that particular Checklist was filled out (because there may be many submissions and sets of responses for a given checklist). I'll show my associations below, in

Versioning of Models in Ruby on Rails

為{幸葍}努か 提交于 2019-11-30 02:27:18
I'm looking for a plugin/act to allow versioning of my models. It's kind of difficult to find a list of the available solutions. So far I gathered: acts_as_versioned simply_versioned vestal_versions The last two solutions only require a single version table - this sounds nice, but I've got a bad feeling about how the ease of migrations will be affacted by this (because they serialize states as a string). On the other hand, acts_as_versioned is a little bit dusty (last commit in January). Are there any recent experiences with any of these? Or other solutions (or forks) I might have overlooked?