Hi,
I have an application using ruby on rails 3 (rubystack). I’m on windows
vista
I want to update the database and here is what I get after typing rake
db:seed --trace
(in C:/Users/dell/BitNami RubyStack Development projects/server)
** Invoke db:seed (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
You have 10 pending migrations:
20110204225837 CreateApps
20110205005643 CreateRatings
20110205154017 CreateVestalVersions
20110205165712 CreateVisuals
20110205165923 AddAttachmentImageToVisual
20110206210830 CreateTargets
20110206210905 CreateAppTargets
20110209223713 CreatePermissions
20110209223746 CreateAppPermissions
20110209224341 CreateComments
Run “rake db:migrate” to update your database then try again.
so as it seems that I have to migrate I type rake db:migrate --trace and
this is what I get :
(in C:/Users/dell/BitNami RubyStack Development projects/server)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== CreateApps: migrating
– create_table(:apps)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Table ‘apps’ already exists: CREATE TABLE apps
(id
int(11) DE
FAULT NULL auto_increment PRIMARY KEY, creator
varchar(255),
packageName
var
char(255), title
varchar(255), description
text, appId
varchar(255), cate gory
varchar(255), recentChanges
text, email
varchar(255), phone
varchar(
255), website
varchar(255), version
varchar(255), versionCode
int(11), ap pType
varchar(255), promoText
text, promoVideo
varchar(255),
screenshotCou nt
int(11), price
varchar(255), priceCurrency
varchar(255),
installSize
v
archar(255), created_at
datetime, updated_at
datetime) ENGINE=InnoDB
C:/rails/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active_record/conn
ection_adapters/abstract_adapter.rb:202:in `rescue in log’…
I don’t understand what’s wrong. What should I do ?
Please help me this is the first time I use ruby on rails and I’m not
that confortable with databases
Thanks,