Sha256: dcc5c56cebe092facf536b3c55d639a44cd5cafbf058fc6dde7411276144e23c
Contents?: true
Size: 405 Bytes
Versions: 46
Compression:
Stored size: 405 Bytes
Contents
class EnableHaraway < ActiveRecord::Migration def up unless column_exists?(:articles, :haraway_metadata) add_column(:articles, :haraway_metadata, :text) end unless column_exists?(:pages, :haraway_metadata) add_column(:pages, :haraway_metadata, :text) end end def down remove_column :articles, :haraway_metadata remove_column :pages, :haraway_metadata end end
Version data entries
46 entries across 46 versions & 1 rubygems