LunarLogicPolska/rubytime — Issue #9: rubytime3 installation error
Author: archonwang
Created: 2011-12-19 02:42:01+00:00
State: open

I tried to install rubytime3 for test, and found some problem.
1. I create database use like this in mysql 5.X
# Create database rubytime3_dev;
2. then I input the command line
# bundle exec rake db:automigrate

it shows error like this
===========================================================================================
DataMapper::Resource.append_inclusions is deprecated, use DataMapper::Model.append_inclusions instea
d (C:/Ruby187/lib/ruby/gems/1.8/bundler/gems/merb_dm_xss_terminate-5ee5f92/lib/merb_dm_xss_terminate
.rb:7)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
E:/rubytime/app/models/user.rb:4: warning: already initialized constant RECENT_ACTIVITIES_NUM
E:/rubytime/app/models/user.rb:5: warning: already initialized constant LOGIN_REGEXP
E:/rubytime/app/models/hourly_rate_log.rb:4: warning: already initialized constant VALID_OPERATION_T
YPES
E:/rubytime/app/models/hourly_rate_log.rb:5: warning: already initialized constant ATTRIBUTES_TO_LOG

E:/rubytime/app/models/activity.rb:3: warning: already initialized constant HOURS_REGEX
E:/rubytime/app/controllers/application.rb:5: warning: already initialized constant JSON_API_VERSION

~ Compiling routes...
~ Could not find resource model Session
~ (0.000000) SET sql_auto_is_null = 0
~ (0.000000) SET SESSION sql_mode = 'ANSI,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUT
ION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL'
~ (0.000000) SELECT `id`, `date`, `minutes`, `project_id`, `role_id`, `activity_type_id`, `user_id`
, `invoice_id`, `price_value`, `price_currency_id`, `updated_at`, `created_at` FROM `activities` WHE
RE `role_id` = -1 ORDER BY `id` LIMIT 1
~ Table 'rubytime3_dev.activities' doesn't exist (code: 1146, sql state: 42S02, query: SELECT `id`,
`date`, `minutes`, `project_id`, `role_id`, `activity_type_id`, `user_id`, `invoice_id`, `price_val
ue`, `price_currency_id`, `updated_at`, `created_at` FROM `activities` WHERE `role_id` = -1 ORDER BY
`id` LIMIT 1, uri: mysql://root:root@localhostrubytime3_dev?encoding=UTF-8)
#

rake aborted!
*** Please run db:autoupgrade
============================================================================================

so, anything I do wrong? Could anyone tell me how to install the rubytime3? I can not install it correctly by the installation Guide or something I've missed? Thanks so much.