Sha256: 7da200d23101ee08f2890ec468084118f156ff5503aef862332f0226c0b7d1fb
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
class CreateBlogPosts < ActiveRecord::Migration[5.0] def change create_table :blog_posts do |t| t.string :title, null: false, limit: 256 t.string :slug, null: true, limit: 64 t.string :author, null: true, limit: 256 t.string :short_description, null: true, limit: 512 t.text :description t.datetime :posted_at, null: true t.boolean :featured, default: false t.string :status, null: false, :default=>"unpublished", limit: 16 t.text :tags t.references :category, index: true t.timestamps null: false end add_index :blog_posts, :status end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dhatu-0.3.0.pre.materialize | db/migrate/20171012103806_create_blog_posts.rb |
dhatu-0.2.3 | db/migrate/20171012103806_create_blog_posts.rb |