[ActiveRecord] wrong number of arguments (0 for 2) ?!

Hi all,

I have a basic model as follow, but when I try to query the database, I
get the following error:

'wrong number of arguments (0 for 2)'

I don't see any problem, I am becoming crazy o_O'

Migration

Migration
---------
class CreateSubtasks < ActiveRecord::Migration
  def self.up
    create_table :subtasks do |t|
      t.string :hostname, :type

It seems that :type should not be used as a column name.

MR Damien wrote:

Migration
---------
class CreateSubtasks < ActiveRecord::Migration
  def self.up
    create_table :subtasks do |t|
      t.string :hostname, :type

It seems that :type should not be used as a column name.

I'm guessing that this (from ActiveRecord::Base doc) has something to do
with it:

Type is a reserve keyword for single table inheritance.

regards
abhishek