Sha256: a5a611ec5548e604b17a8f7a4346942817e6d7d68d29522e2ace2077c2b36cde

Contents?: true

Size: 636 Bytes

Versions: 9

Compression:

Stored size: 636 Bytes

Contents

class CreateBlogelatorPosts < ActiveRecord::Migration
  def change
    create_table :blogelator_posts do |t|
      # Associations
      t.belongs_to :author, index: true

      # Attributes
      t.text       :body_html
      t.text       :body_markdown
      t.boolean    :featured
      t.attachment :image
      t.string     :meta_description
      t.string     :meta_keywords
      t.datetime   :published_at
      t.string     :slug, index: true
      t.integer    :status, default: 0
      t.text       :summary_html
      t.text       :summary_markdown
      t.string     :title

      t.timestamps null: false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blogelator-1.0.9 db/migrate/create_blogelator_posts.rb
blogelator-1.0.7 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.6 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.5 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.4 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.3 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.2 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.1 db/migrate/20151018150314_create_blogelator_posts.rb
blogelator-1.0.0 db/migrate/20151018150314_create_blogelator_posts.rb