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: ------------------------ Single table inheritance Active Record allows inheritance by storing the name of the class in a column that by default is named "type" (can be changed by overwriting Base.inheritance_column). ------------------------ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

