Sha256: 1bcafd924f009a986f29731c6d0737468b19755659a45491f92ed61120535c5e

Contents?: true

Size: 425 Bytes

Versions: 16

Compression:

Stored size: 425 Bytes

Contents

# This migration comes from almanac (originally 20121029211221)
class AddNewFieldsToBlogs < ActiveRecord::Migration
  def up
    change_table :almanac_blogs do |t|
      t.text :description
      t.string :twitter
      t.string :google_analytics
    end
  end

  def down
    remove_column :almanac_blogs, :description
    remove_column :almanac_blogs, :twitter
    remove_column :almanac_blogs, :google_analytics
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
almanac-0.9.2 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.9.1 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.9.0 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.8.0 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.7.4 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.7.3 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.7.2 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.7.1 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.6.1 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.6.0 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.5.3 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.5.2 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.5.1 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.5.0 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.4.5 spec/dummy/db/migrate/20121114185261_add_new_fields_to_blogs.almanac.rb
almanac-0.4.4 spec/dummy/db/migrate/20121102224654_add_new_fields_to_almanac_blogs.rb