Skip to content
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

Error with column_name database #121

Closed
remydev opened this issue May 30, 2019 · 0 comments
Closed

Error with column_name database #121

remydev opened this issue May 30, 2019 · 0 comments

Comments

@remydev
Copy link
Contributor

remydev commented May 30, 2019

Hello,
I get an error, i don't understand.

My objet is

class Brand
        include Clear::Model
        primary_key  
        column name : String

end

The database is

CREATE TABLE public.brands
(
    id integer NOT NULL DEFAULT,
    name text COLLATE pg_catalog."default"
)

I wish change de column name in the database

class Brand
        include Clear::Model
        primary_key  
        column name : String, column_name: "brand_name"
end

Without change the database, i get this error :
Exception: You're trying to access to the column name but it is not initialized.

If I change the database name, I get the same error. It's looks like the column_name is not read
I tried with another object, I got the same result. The column attribute is not used in the query

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant