Index: activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb =================================================================== --- activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb (revision 9248) +++ activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb (working copy) @@ -426,7 +426,7 @@ self end - %w( string text integer float decimal datetime timestamp time date binary boolean ).each do |column_type| + %w( string text integer float decimal datetime timestamp time date binary boolean uuid ).each do |column_type| class_eval <<-EOV def #{column_type}(*args) options = args.extract_options! Index: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb =================================================================== --- activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb (revision 9248) +++ activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb (working copy) @@ -144,6 +144,9 @@ # XML type when /^xml$/ :string + # UUID type + when /^uuid$/ + :uuid # Arrays when /^\D+\[\]$/ :string @@ -280,7 +283,8 @@ :time => { :name => "time" }, :date => { :name => "date" }, :binary => { :name => "bytea" }, - :boolean => { :name => "boolean" } + :boolean => { :name => "boolean" }, + :uuid => { :name => "uuid" } } end