ruby - performing sql operation in rails console -


i have gem 'sqlite3' installed in rails application. where perform query check whether records exist in table.

in rails console ran sqlite3.

c:\sites\iauth>sqlite3 sqlite version 3.8.2 2013-12-06 14:53:30 enter ".help" instructions enter sql statements terminated ";" sqlite> select * users; error: no such table: users sqlite> 

i have table users, how come says no such table exists. using devise authentication. below model.

class user < activerecord::base   # include default devise modules. others available are:   # :confirmable, :lockable, :timeoutable , :omniauthable   devise :database_authenticatable, :registerable,          :recoverable, :rememberable, :trackable, :validatable end 

you need refer db file directly:

sqlite3 db/development.sqlite3 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -