Topic: ActiveRecord::StatementInvalid in WelcomeController#index

Hello Everybody!

Im migrating a project metrocubico.heroku.com, from github to my localhost. But when i try to open it in my computer, mac with leopard snow, i see there is no tables of the database.

ActiveRecord::StatementInvalid in WelcomeController#index

Could not find table 'coworking_spaces'

Any help?

Thanks!! smile

Re: ActiveRecord::StatementInvalid in WelcomeController#index

I will complete my request, becouse maby is not well written. Do i have to migrate my db from the web project to my localhost, or just with the complete rails file i have all the information?

Thanks guys!!

Re: ActiveRecord::StatementInvalid in WelcomeController#index

Hi mate.

You should probably setup your database and migrate:
rake db:setup
rake db:migrate
rake db:seed

Ohw also if you get any errors. you should maybe first bundle the gems:
bundle install

Hope this helps.
Cheers!

Re: ActiveRecord::StatementInvalid in WelcomeController#index

Hi!

Thank you for your reply.

I just intalled rubyonrails and leopard snow with xcode 3.

When i say to the terminal

rake db:setup
rake db:migrate
rake db:seed

I have:

You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7. Consider using bundle exec.

(See full trace by running task with --trace)

Re: ActiveRecord::StatementInvalid in WelcomeController#index

Try bundle rake update.