Sha256: b081bcd0b71d620d84a1a8fd70f8a2da9b838fee5bf243958364636f699ddb36
Contents?: true
Size: 661 Bytes
Versions: 9
Compression:
Stored size: 661 Bytes
Contents
class CreateBlogPosts < ActiveRecord::Migration[5.0] def change create_table :dhatu_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 :dhatu_blog_posts, :status end end
Version data entries
9 entries across 9 versions & 1 rubygems