diff --git a/db/migrate/20111002013921_fix_data_type_for_activity_streams_object_id.rb b/db/migrate/20111002013921_fix_data_type_for_activity_streams_object_id.rb new file mode 100644 index 000000000..99181ae35 --- /dev/null +++ b/db/migrate/20111002013921_fix_data_type_for_activity_streams_object_id.rb @@ -0,0 +1,11 @@ +class FixDataTypeForActivityStreamsObjectId < ActiveRecord::Migration + def self.up + change_table :posts do |t| + t.change :objectId, :string + end + end + + def self.down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index a68afbe09..87defb4b6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20110930182048) do +ActiveRecord::Schema.define(:version => 20111002013921) do create_table "aspect_memberships", :force => true do |t| t.integer "aspect_id", :null => false @@ -278,7 +278,7 @@ ActiveRecord::Schema.define(:version => 20110930182048) do t.integer "image_width" t.string "provider_display_name" t.string "actor_url" - t.integer "objectId" + t.string "objectId" t.string "root_guid", :limit => 30 t.string "status_message_guid" t.integer "likes_count", :default => 0 diff --git a/spec/models/activity_streams/photo_spec.rb b/spec/models/activity_streams/photo_spec.rb index 34e765073..c5d2ab20a 100644 --- a/spec/models/activity_streams/photo_spec.rb +++ b/spec/models/activity_streams/photo_spec.rb @@ -8,7 +8,7 @@ describe ActivityStreams::Photo do describe '.from_activity' do before do @json = JSON.parse <