Mercurial > hg > soundsoftware-site
view test/exemplars/.svn/text-base/time_entry_exemplar.rb.svn-base @ 106:f6ea6ffaaeeb luisf
Migration that renames the column in ssamr table (university->institution_id)
author | luisf |
---|---|
date | Fri, 17 Dec 2010 10:28:24 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class TimeEntry < ActiveRecord::Base generator_for(:spent_on) { Date.today } generator_for(:hours) { (rand * 10).round(2) } # 0.01 to 9.99 generator_for :user, :method => :generate_user def self.generate_user User.generate_with_protected! end end