I want to run a ruby on rails project in my Ubuntu 12 mechine.After running the command bundle install i used the following command
rake db:drop db:setup
it shows
-- create_table("art_clas", {:force=>true})
-> 0.3222s
-- add_index("art_clas, ["art_id", "clas, {:name=>"index_art_attes_on_art_attribute", :unique=>true})
-> 0.4328s
.....................................
.....................................
while i using $ rake db:setup command it shows the existing db's
franche_development already exists
franche_test already exists
-- create_table("art_clas", {:force=>true})
-> 0.3222s
-- add_index("art_clas, ["art_id", "clas, {:name=>"index_art_attes_on_art_attribute", :unique=>true})
-> 0.4328s
.....................................
Later when i run the project it doesn't show any value from database tables(showing blank). after that i typed following to show the databases. But this operation does not shows my existing databases in the rails project
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.23 sec)
Executing rake db:drop returns nothing
$ rake db:drop
$
and when running the project displaying
Mysql2::Error: Table 'franche_development.arts' doesn't exist: SELECT `arts`.* FROM `arts` WHERE `arts`.`active` = 1 .....
How can i set up and use the existing databases and tables from rails project.
Is it due to any code error or database setup??