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

Incorrect process of not mentioned database field #23

Closed
imdrasil opened this issue Aug 22, 2017 · 1 comment
Closed

Incorrect process of not mentioned database field #23

imdrasil opened this issue Aug 22, 2017 · 1 comment
Assignees

Comments

@imdrasil
Copy link
Owner

imdrasil commented Aug 22, 2017

If you not mention some field app will freeze.

Code to reproduce

# migration

create_table :some_models do |t|
  t.string :f1
  t.string :f2
end

# model definition

class SomeModel < Jennifer::Model::Base
  mapping(
    id: { type: Int32?, primary: true},
    f1: String?
  )
end

SomeModel.where { some_condition }.to_a
@imdrasil imdrasil added the bug label Aug 22, 2017
@imdrasil imdrasil self-assigned this Aug 22, 2017
@imdrasil
Copy link
Owner Author

will be fixed after merging v_0.3.4 branch into master

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

No branches or pull requests

1 participant