Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

20140916213814_create_blog_posts.rb 314B

    class CreateBlogPosts < ActiveRecord::Migration def change create_table :blog_posts do |t| t.string :title t.string :slug t.text :content t.boolean :published t.references :author, index: true t.timestamps end add_index :blog_posts, :slug, unique: true end end