Skip to content

Updated Javascript and Ruby on Rails DB Model to account for the *reserved word* 'end' it is now 'ends'#1

Open
seanjhulse wants to merge 1 commit intodriftingruby:masterfrom
seanjhulse:master
Open

Updated Javascript and Ruby on Rails DB Model to account for the *reserved word* 'end' it is now 'ends'#1
seanjhulse wants to merge 1 commit intodriftingruby:masterfrom
seanjhulse:master

Conversation

@seanjhulse
Copy link

The reserved word 'end' that we used in the database caused some issues with my application when I needed to make some special Active Record queries like

...where('end > ?', Date.today)

I changed the word 'end' to 'ends' so it remained intuitive (and was easy to update on all of my files). I hope I got all of the reserved words out of Ruby code. I ran it on my end and it went fine, but perhaps I got lucky. If it is all fixed, Active Record queries now look like

...where('ends > ?', Date.today)

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

Successfully merging this pull request may close these issues.

1 participant

Comments