Sha256: ed853d36bc47218772315337c98c11af229721bf4cf2682a76516e93ca1486ec

Contents?: true

Size: 219 Bytes

Versions: 12

Compression:

Stored size: 219 Bytes

Contents

class AddSummaryToPosts < ActiveRecord::Migration
  def change
    add_column :blogelator_posts, :summary, :text, default: "", null: false
    
    Blogelator::Post.all.each do |post|
      post.save!
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blogelator-0.2.5 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.2.4 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.2.3 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.2.2 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.2.1 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.6 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.5 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.4 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.3 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.2 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.1 db/migrate/20140303015004_add_summary_to_posts.rb
blogelator-0.1.0 db/migrate/20140303015004_add_summary_to_posts.rb