Sha256: f0b0d65e5f52ae0724bdf5d44800a36c1317b21ac1094e0361fa212a2aa25a09

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.boolean :published
      t.datetime :date
      t.string :title
      t.string :excerpt
      t.text :body

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogmodule-1.0.2 db/migrate/20111231181111_create_posts.rb
blogmodule-1.0.1 db/migrate/20111231181111_create_posts.rb
blogmodule-1.0.0 db/migrate/20111231181111_create_posts.rb
blogmodule-0.0.1 db/migrate/20111231181111_create_posts.rb