Sha256: 36d661bcbf29a8f726d139c179632d5bb854b43a067d1fd24c7d90710664d784

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.3 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.2 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_bootstrap_theme-0.0.1 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_default_theme-1.0.2 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_default_theme-1.0.1 db/migrate/20110404120925_change_column_title_in_reviews.rb
synergy_default_theme-1.0.0 db/migrate/20110404120925_change_column_title_in_reviews.rb