Sha256: c766559ec1690f329f20adedef2b9d14527ffd9440967aa50ca8712c1debc99b

Contents?: true

Size: 238 Bytes

Versions: 2

Compression:

Stored size: 238 Bytes

Contents

# frozen_string_literal: true

class CreateArticles < ActiveRecord::Migration[6.1]
  def change
    create_table(:articles) do |t|
      t.string(:title, null: false)
      t.text(:body, null: false)

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
upgrow-0.0.5 test/dummy/db/migrate/20210219211631_create_articles.rb
upgrow-0.0.4 test/dummy/db/migrate/20210219211631_create_articles.rb