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