spec/fixtures/models.rb in by_star-0.6.3 vs spec/fixtures/models.rb in by_star-0.6.4

- old
+ new

@@ -1,9 +1,9 @@ class Post < ActiveRecord::Base default_scope :order => "#{quoted_table_name}.created_at ASC" has_and_belongs_to_many :tags - + def self.factory(text, created_at = nil) create!(:text => text, :created_at => created_at) end end @@ -21,10 +21,10 @@ create!(:value => value, :created_at => created_at, :number => value) end end class DayEntry < ActiveRecord::Base - + end ## seed data: year = Time.zone.now.year \ No newline at end of file