Sha256: 6f6c0d7a8f5caf77a50f9da55390d1db8cbd3d18dd20ec49d4292af4f040a519

Contents?: true

Size: 337 Bytes

Versions: 13

Compression:

Stored size: 337 Bytes

Contents

class ChangedChameleonsAddedIncompatibleSpotAndDeletedSpots < ActiveRecord::Migration
  def self.up
    add_column :chameleons, :incompatible_spot, :integer
    remove_column :chameleons, :spots
  end
  
  def self.down
    add_column :chameleons, :spots, :string, :limit=>255
    remove_column :chameleons, :incompatible_spot
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
migrant-1.5.0 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.4.3 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.4.1 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.4.0 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.3.2 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.3.1 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.3.0 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.8 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.7 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.5 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.2 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.1 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb
migrant-1.2.0 test/verified_output/migrations/added_incompatible_spot_and_deleted_spots.rb