Displaying 1 result from an estimated 1 matches for "less_than_thirty_day".
Did you mean:
less_than_thirty_days
2006 Nov 07
4
Unknown column 'id' in 'field list
...ion, 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_table :active_user_metrics
end
end
The test I wrote is as follows.
class ActiveUserMetricTest < Test::Unit::TestCase
fixtures :active_user_metrics
def te...