Skip to content
Discussion options

You must be logged in to vote

This is correct behavior. Avram (and Lucky) treat empty strings the same as nil. This is because an empty string on a non-nilable field will usually lead to bugs. For example, imagine displaying a user's name on a page, but the name is an empty string. It might say " , your report is now ready".

I have an issue to document this luckyframework/website#1288 but I've just never got around to doing it 😂

You can do this:

table do
    column user_id : Int64
    column changed_column_name : String
    column from : String, allow_blank: true
    column to : String
  end

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zw963
Comment options

@jwoertink
Comment options

Answer selected by zw963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants