Sha256: db06d199e1920fedc499c85cf90385c76b07d848eb13cbfcca0e3dcbcd768197

Contents?: true

Size: 185 Bytes

Versions: 16

Compression:

Stored size: 185 Bytes

Contents

class RemovePolymorphicAssociationFromPhotos < ActiveRecord::Migration
  def change
    rename_column :photos, :related_id, :album_id
    remove_column :photos, :related_type
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
mix-rails-0.26.3 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.26.3 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.26.2 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.26.2 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.26.1 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.26.1 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.26.0 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.26.0 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.25.1 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.25.1 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.25.0 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.25.0 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.24.1 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.24.1 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-0.24.0 mix-rails-albums/db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb
mix-rails-albums-0.24.0 db/migrate/20130219111930_remove_polymorphic_association_from_photos.rb