I am new to both RoR and SQLite; So pardon my lack of knowledge.
I ran a scaffold command:
rails generate scaffold User password:string email:string
everything worked fine, next i ran the rake db:migrate command, the terminal suggested that everything was created.
Now i opened a new terminal and i wanted to verify that the table was created, so i hit sqlite3 on terminal and ran .tables command, it shows null value.
So this time I ran sqlite3 db/development.sqlite3 command and hit .tables it said unable to open database file
next I tried sqlite3 development.sqlite3 and hit .tables command and no results were shown.
I do not understand what I am doing wrong? and I am unable to find a decent tutorial which walks one through this. please help.
here is my .yml file:
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
test:
<<: *default
database: db/test.sqlite3
production:
<<: *default
database: db/production.sqlite3"
rails consoleand thanUser.alland check if the users were createdrails new whatevs && cd whatevs;rails g scaffold User password:string email:string;rake db:migrate;sqlite3 db/development.sqlite3;.tables: outputsschema_migrations users. All fine.rails dbby the way.