lundi 9 février 2015

Couldn't connect to sqlite3 database with rails application

I installed sqlite3 gem with my rails application. I added sqlite3 to Gemfile and database.yml file and when I run rake db:create, rake db:migrate commands they are running fine but when I try to view it sqlite3 command prompt, i couldn't find my db. Please help me.


this is my database.yml file:



development:
adapter: sqlite3
database: emp_management
pool: 5
timeout: 5000


Gemfile:



gem 'sqlite3'


In sqlite command prompt:



raj@itadmin-HP-Pavilion-17-Notebook-PC:~/Desktop/Projects/empmanagement$ sqlite3
SQLite version 3.8.2 2013-12-06 14:53:30
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .databases
seq name file
--- --------------- ----------------------------------------------------------
0 main
sqlite> .tables
sqlite>

Aucun commentaire:

Enregistrer un commentaire