Sha256: 808bad215b939c5f82fc08c6fc9df96783b651679ad38a1752dab00e9435c973

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

# This migration comes from timeful (originally 20160928113515)
class ChangeForeignIdsToString < ActiveRecord::Migration
  def up
    change_column :timeful_feed_items, :subscriber_id, :string
    change_column :timeful_activities, :actor_id, :string
    change_column :timeful_activities, :object_id, :string
  end

  def down
    change_column :timeful_feed_items, :subscriber_id, :integer
    change_column :timeful_activities, :actor_id, :integer
    change_column :timeful_activities, :object_id, :integer
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
timeful-2.1.0 spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb
timeful-2.0.0 spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb
timeful-1.1.0 spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb