Sha256: dd57f75b252caab9d01e275e3138873feef9b3d98d22d1f11da865ab0d4b7bc0

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

class RevertChangesColumnTitleInReviews < ActiveRecord::Migration
  def self.up
    if table_exists?(:reviews)
      change_column(:reviews, :title, :string, :default => nil)
    end
  end

  def self.down
    if table_exists?(:reviews)
      change_column(:reviews, :title, :string, :default => '-')
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.3 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.2 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.1 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb
synergy_default_theme-1.0.2 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb
synergy_default_theme-1.0.1 db/migrate/20110510080413_revert_changes_column_title_in_reviews.rb