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