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

Version Path
lalala-4.1.0.dev.425 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.420 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.419 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.418 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.417 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.415 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.414 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.413 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.412 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.411 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.410 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.409 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.408 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.398 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.397 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.394 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.392 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.391 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.390 test/dummy/db/migrate/20131122144302_enable_haraway.rb
lalala-4.1.0.dev.389 test/dummy/db/migrate/20131122144302_enable_haraway.rb