Sha256: 4eb7374a51df57ef6d1b9ad96aba9762e92e7156bb523ea24904ea9ef64e0f0d

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

class AddFieldsToRailsBlogEnginePost < ActiveRecord::Migration
  def change
    add_column :rails_blog_engine_posts, :state, :string
    add_column :rails_blog_engine_posts, :published_at, :datetime
    add_column :rails_blog_engine_posts, :permalink, :string
    add_column :rails_blog_engine_posts, :author_id, :integer
    add_column :rails_blog_engine_posts, :author_type, :string
    add_column :rails_blog_engine_posts, :author_byline, :string

    add_index :rails_blog_engine_posts, :permalink
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.4 db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb
rails_blog_engine-0.0.3 db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb
rails_blog_engine-0.0.2 db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb
rails_blog_engine-0.0.1 db/migrate/20110913190319_add_fields_to_rails_blog_engine_post.rb