3scale/porta

View on GitHub
db/migrate/018_create_blog_posts.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateBlogPosts < ActiveRecord::Migration
  def self.up
    create_table :blog_posts do |t|
      t.string :title
      t.text :body

      t.timestamps
    end
  end

  def self.down
    drop_table :blog_posts
  end
end