Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Broken rake

Great. So I try and do things all properly-like, using migrate scripts to make the database and stuff, and it goes and dies on me.

` josh@whisper:~/public_html/XX/db/migrate$ rake migrate (in /home/josh/public_html/XX) rake aborted! You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘desc varchar(255)) ENGINE=InnoDB’ at line 1: CREATE TABLE courses (id int(11) DEFAULT NULL auto_increment PRIMARY KEY, name varchar(255), desc varchar(255)) ENGINE=InnoDB ./Rakefile:200 `

Nyaaaah. I think it’s coz I’m using the only version of Ruby that the Rails team don’t recommend:

We recommend Ruby 1.8.4 for use with Rails. Ruby 1.8.2 is fine too, but version 1.8.3 is not.

Hah. Yeah, I’m using 1.8.3. It’s Ubuntu’s fault! That’s just what happened to be sitting in stupid apt repositories. So now I need to add backports to an otherwise-clean computer. *shudders* Well, I guess the alternative is compiling and trying to stay on top of all that… *Josh is seen hurriedly running to add backports sources*

Well, maybe not tonight. wanders off to post on τρανσλιτερατιον before sleeping