InnoDB Database Migration

Posted by Bart ten Brinke Tue, 01 May 2007 21:12:50 GMT

I was looking for a migration that could convert my MyISAM tables to InnoDB, as I had mistakenly created some MyISAM tables. This sounds simple, but I wasn't able to find anything that did this. This simple migration I created, does the trick nicely.

class InnodbEngine < ActiveRecord::Migration
def self.up
  tables= [ 'addresses',
           'assets',
           'etcetera']

  for table in tables
    begin
      table_info = select_one "SHOW TABLE STATUS LIKE '" + table + "'"
      if (table_info['Engine'] != 'InnoDB')    
        execute 'ALTER TABLE `' + table + '` ENGINE=InnoDB'
      else
        puts table + ' allready InnoDB, skipping for migration'
      end
    rescue
      puts 'Skipping table ' + table
      puts 'Table not found or InnoDB not supported.'
    end
   end
end

def self.down
 # Not needed
end

end

Posted in  | 2 comments

Holland on Rails

Posted by Bart ten Brinke Tue, 01 May 2007 19:38:00 GMT

We were asked to do a quicky on the Holland On Rails rails conf :)!

We'll be talking about what we are doing, and we'll have a nice surprise for the rails comunity. We'll be posting that on our website around the same date. What it going to be? Just make sure you've got enough money for a big flatschreen....

Haven't you got a clue what i'm talking about? Pay them a visit: http://www.hollandonrails.nl/

Posted in ,  | no comments

Hosting Ruby on Rails

Posted by Dirkjan Bussink Wed, 18 Apr 2007 15:13:00 GMT

After a period of downtime, we are back online and running at a new hoster. The blog is now running on the brand new Ruby on Rails platform created by Byte & Sparks. Byte is a hosting company in the Netherlands (where we are also located) and provides mass virtual hosting using all kinds of fancy stuff such as load-balancing and fail-over .

Who am I then... I'm the guy behind Sparks. I've built the hosting system for Byte, after already working for them for quite a while. I'm also in on the upcoming big thing, doing the technology behind the application.

Because Byte & Sparks want to prove they are good and want to improve their solution using the community, you can try running you're Ruby on Rails application for half a year for... nothing! The only thing you have to do, is provide feedback if you find problems or things to improve.

Posted in  | no comments

Textdrive, slow and unreliable

Posted by Bart ten Brinke Sat, 14 Apr 2007 19:30:00 GMT

Sorry for the link time of nothingness. We found out the hard way that Textdrive is not the best Rails host ever. Especially when you're in Europe.

We have however found a very good replacement. We teamed up with Byte for our application servers, and as a spin off byte now has a full-fledged ruby stack for their customers.

More important: Byte is now giving away free testing accounts on their new rails application server. This server is much more reliable, faster and scalable then Textdrive will ever be!

So, what are you waiting for? Pay them a visit

Posted in  | no comments

Busy busy busy

Posted by Bart ten Brinke Thu, 08 Mar 2007 19:42:27 GMT

Sorry for the fact that we haven't posted a lot. It's because we are quite busy with something. Can't tell you anything more that it is big.. and that it is ruby on rails. Keep an eye on the site for more info. What's comming up? The Act as Owned plugin is nearing it's 1.0RC release and will shortly be added to rubyforge. In the meantime: patience is a virtue!

Posted in  | no comments

We made it to the front page of rubyforge

Posted by Andre Foeken Sat, 24 Feb 2007 22:46:10 GMT

Our initial relase of our Gettext Rails Generator is frontpage news on http://www.rubyforge.org. A good motivator for everything that is still to come!

Posted in ,  | 1 comment

Type of Type

Posted by Bart ten Brinke Fri, 23 Feb 2007 15:51:28 GMT

Do not create a model with a field named "type". As this will break the activerecord object sometimes. And when it breaks you'll get errormessages that will point you in quite a different direction. If for example you do a Find that returns an object, you'll encounter an 'unexpected tINTEGER'. Which offcourse speaks for itself.

Posted in  | no comments

Gettext Generators 1.2.1RC Released

Posted by Bart ten Brinke Tue, 20 Feb 2007 15:22:37 GMT

Finally, the first release for MovesOnRails.com!

But first, let me tell you something about what and why we are releasing anything here. We (Andre Foeken and Bart ten Brinke) are currently working on a large scale Ruby on Rails project for Nedap healthcare.

Because we are both new to Ruby on Rails, and we are currently in the development phase, we are learning a lot. We felt that a lot of the things we encounter while developing are things other people will encounter too.

An other part is that, eventhough we are only developing for a short time, we allready have a large amount of tools that could prove very usefull for others.

One of these tools is our scaffold_resource_gettext generator. Because our rails app is multilingual, we are using gettext. Gettext for Rails works like a charm, but also brakes some of the handy Rails features (like generators). This is why we wrote a scaffold resource generator that generates files that are prepared for Gettext.

Expect more to come soon! In the mean time, check out the project on RubyForge or take a look here.

Posted in  | no comments

Starting up

Posted by Bart ten Brinke Mon, 19 Feb 2007 15:05:28 GMT

Moves On Rails is finally up and running. But what is it for? Well, just wait until our Rubyforge projects are accepted, so that we have some content.

Posted in  | no comments

Older posts: 1 ... 5 6 7