2007-03-30 04:36:52 +00:00
|
|
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
|
|
|
|
2015-08-04 23:08:13 +02:00
|
|
|
# Please note that dates in yml are not converted to utc timezone like
|
|
|
|
# rails does automatically in models or controllers! Convert to utc manually!
|
2014-12-30 22:56:19 +00:00
|
|
|
|
2015-08-04 23:08:13 +02:00
|
|
|
<%
|
2019-04-11 09:53:53 -05:00
|
|
|
def yesterday
|
|
|
|
Time.zone.now.utc.beginning_of_day - 1.day
|
|
|
|
end
|
2015-08-04 23:08:13 +02:00
|
|
|
def today
|
|
|
|
Time.zone.now.utc.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
2019-04-11 09:53:53 -05:00
|
|
|
def tomorrow
|
|
|
|
(Time.zone.now.utc.beginning_of_day + 1.day).to_s(:db)
|
|
|
|
end
|
|
|
|
|
2015-08-04 23:08:13 +02:00
|
|
|
def next_week
|
|
|
|
1.week.from_now.utc.beginning_of_day.to_s(:db)
|
|
|
|
end
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2015-08-04 23:08:13 +02:00
|
|
|
def last_week
|
|
|
|
1.week.ago.utc.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
2007-10-16 07:16:22 +00:00
|
|
|
def two_weeks_ago
|
2015-08-04 23:08:13 +02:00
|
|
|
2.weeks.ago.utc.beginning_of_day.to_s(:db)
|
2007-10-16 07:16:22 +00:00
|
|
|
end
|
|
|
|
|
2007-03-30 04:36:52 +00:00
|
|
|
def two_weeks_hence
|
2015-08-04 23:08:13 +02:00
|
|
|
2.weeks.from_now.utc.beginning_of_day.to_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_bill:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 1
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Call Bill Gates to find out how much he makes per day
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_dino_ext:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 2
|
|
|
|
context_id: 2
|
|
|
|
project_id: 3
|
|
|
|
description: Call dinosaur exterminator
|
|
|
|
notes: Ask him if I need to hire a skip for the corpses.
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_milk:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 3
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Buy milk
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_bread:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 4
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Buy bread
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
construct_dilation_device:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 5
|
|
|
|
context_id: 5
|
|
|
|
project_id: 1
|
|
|
|
description: Construct time dilation device
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
phone_grandfather:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 6
|
|
|
|
context_id: 2
|
|
|
|
project_id: 1
|
|
|
|
description: Phone Grandfather to ask about the paradox
|
|
|
|
notes: Added some _notes_.
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= last_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2008-11-28 16:39:50 +01:00
|
|
|
book:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 7
|
|
|
|
context_id: 6
|
|
|
|
project_id: 3
|
|
|
|
description: Get a book out of the library
|
|
|
|
notes: 'Dinosaurs''R'
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
upgrade_rails:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 8
|
|
|
|
context_id: 4
|
|
|
|
project_id: ~
|
|
|
|
description: Upgrade to Rails 0.9.1
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: <%= today %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
due_today:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 9
|
|
|
|
context_id: 1
|
|
|
|
project_id: ~
|
|
|
|
description: This should be due today
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
foo:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 10
|
|
|
|
context_id: 1
|
|
|
|
project_id: ~
|
|
|
|
description: foo
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
2007-10-16 07:16:22 +00:00
|
|
|
created_at: <%= two_weeks_ago %>
|
2007-03-30 04:36:52 +00:00
|
|
|
due: <%= two_weeks_hence %>
|
|
|
|
completed_at: <%= last_week %>
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_shares:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 11
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Buy shares
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_stego_bait:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 12
|
|
|
|
context_id: 1
|
|
|
|
project_id: 3
|
|
|
|
description: Buy stegosaurus bait
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
new_action_in_context:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 13
|
|
|
|
context_id: 1
|
|
|
|
project_id: 3
|
|
|
|
description: New action in context
|
|
|
|
notes: Some notes
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: <%= next_week %>
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_stock_broker:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 14
|
|
|
|
context_id: 2
|
|
|
|
project_id: 2
|
|
|
|
description: Call stock broker
|
|
|
|
notes: 'tel: 12345'
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
user_id: 1
|
2015-08-04 23:08:13 +02:00
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
select_delorean_model:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 15
|
|
|
|
context_id: 6
|
|
|
|
project_id: 1
|
|
|
|
description: Select Delorean model
|
|
|
|
notes: ~
|
|
|
|
state: deferred
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
2007-05-21 06:12:55 +00:00
|
|
|
show_from: <%= next_week %>
|
2007-03-30 04:36:52 +00:00
|
|
|
user_id: 1
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
buy_tix:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 16
|
|
|
|
context_id: 10
|
|
|
|
project_id: 4
|
|
|
|
description: Buy tix
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
show_from: <%= next_week %>
|
|
|
|
user_id: 2
|
|
|
|
|
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
pal_confirmation:
|
2007-03-30 04:36:52 +00:00
|
|
|
id: 17
|
|
|
|
context_id: 11
|
|
|
|
project_id: 4
|
|
|
|
description: Confirmation from pal
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= today %>
|
|
|
|
due: ~
|
|
|
|
completed_at: ~
|
|
|
|
show_from: <%= next_week %>
|
|
|
|
user_id: 2
|
2008-10-14 22:49:17 +02:00
|
|
|
|
2009-06-02 21:22:50 +02:00
|
|
|
call_bill_gates_every_day:
|
2008-10-14 22:49:17 +02:00
|
|
|
id: 18
|
|
|
|
user_id: 1
|
|
|
|
context_id: 1
|
|
|
|
project_id: 2
|
|
|
|
description: Call Bill Gates every day
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= last_week %>
|
|
|
|
due: <%= last_week %>
|
|
|
|
completed_at: ~
|
|
|
|
show_from: ~
|
2009-12-16 17:32:08 -05:00
|
|
|
recurring_todo_id: 1
|
|
|
|
|
|
|
|
email_broker:
|
|
|
|
id: 19
|
|
|
|
user_id: 1
|
|
|
|
context_id: 3
|
|
|
|
description: Ask about better stocks
|
|
|
|
notes: ~
|
|
|
|
state: pending
|
2019-04-11 09:53:53 -05:00
|
|
|
|
|
|
|
package_delivered:
|
|
|
|
id: 20
|
|
|
|
context_id: 11
|
|
|
|
project_id: 5
|
|
|
|
description: Package delivery date
|
|
|
|
notes: ~
|
|
|
|
state: active
|
|
|
|
created_at: <%= two_weeks_ago %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: ~
|
|
|
|
show_from: ~
|
|
|
|
user_id: 2
|
|
|
|
|
|
|
|
assemble_furniture:
|
|
|
|
id: 21
|
|
|
|
context_id: 11
|
|
|
|
project_id: 5
|
|
|
|
description: Put together the furniture we bought
|
|
|
|
notes: ~
|
|
|
|
state: completed
|
|
|
|
created_at: <%= two_weeks_ago %>
|
|
|
|
due: <%= today %>
|
|
|
|
completed_at: <%= yesterday %>
|
|
|
|
show_from: ~
|
|
|
|
user_id: 2
|