Skip to content

Instantly share code, notes, and snippets.

@edwardloveall
Created January 21, 2019 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardloveall/72ed2eaaa02999fa68ea3a1feedfb1f7 to your computer and use it in GitHub Desktop.
Save edwardloveall/72ed2eaaa02999fa68ea3a1feedfb1f7 to your computer and use it in GitHub Desktop.
in db/migrations/20190120141952_generate_usernames_for_users.cr:11: no overload matches 'GenerateUsernamesForUsers::V20190120141952::User::BaseForm.update!' with types User, username: String
Overloads are:
- GenerateUsernamesForUsers::V20190120141952::User::BaseForm.update!(record : T, with params, id : Int32 | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, username : String | Nothing | Nil = Nothing.new)
- GenerateUsernamesForUsers::V20190120141952::User::BaseForm.update!(record : T, id : Int32 | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, username : String | Nothing | Nil = Nothing.new)
User::BaseForm.update!(user, username: new_username)
^~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment