search for: active_user_metrics

Displaying 1 result from an estimated 1 matches for "active_user_metrics".

2006 Nov 07
4
Unknown column 'id' in 'field list
...;m trying to write a unit test for model that doesn''t have an ''id'' field. I created the model''s table with the following migration, making sure the primary key was set. class CreateActiveUserMetrics < ActiveRecord::Migration def self.up create_table :active_user_metrics, {:id => false, :primary_key => :sample_date} do |t| t.column :sample_date, :date t.column :less_than_thirty_days, :integer t.column :less_than_ninety_days, :integer t.column :all_days, :integer end end def self.down drop...