New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no function or associated item named `table` found for type #1503

Closed
sackery opened this Issue Jan 22, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@sackery

sackery commented Jan 22, 2018

error[E0599]: no function or associated item named `table` found for type `schema::auth_tokens::table` in the current scope
  --> src/models/auth_token.rs:43:31
   |
43 |           ::diesel::insert_into(auth_tokens::table)
   |                                 ^^^^^^^^^^^^^^^^^^ function or associated item not found in `schema::auth_tokens::table`
   | 
  ::: src/schema.rs
   |
1  | / table! {
2  | |     auth_tokens (user_id) {
3  | |         user_id -> Int4,
4  | |         token -> Int4,
5  | |         created -> Timestamp,
6  | |     }
7  | | }
   | |_- function or associated item `table` not found for this

@sackery sackery closed this Jan 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment