Sha256: 3fa80842c5f089480ea874b2b49952bddb08a7c450e3ee05ef30f4d119188c80

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

class CreateMiniBlogArticles < ActiveRecord::Migration[5.1]
  def change
    create_table :mini_blog_articles do |t|
      t.string :title, null: false
      t.text :body, null: false
      t.integer :status, null: false, limit: 1, default: 0
      t.string :uid

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mini_blog-0.1.1 db/migrate/20180224022923_create_mini_blog_articles.rb
mini_blog-0.1.0 db/migrate/20180224022923_create_mini_blog_articles.rb