Sha256: 7aecd8d23ba35ae63a7023f3ec476f1b793405cde54b2a2337de261ad38afc6b
Contents?: true
Size: 270 Bytes
Versions: 1
Compression:
Stored size: 270 Bytes
Contents
# frozen_string_literal: true class CreateArticles < ActiveRecord::Migration[7.1] def change create_table :articles do |t| t.string :title t.belongs_to :category, null: false, foreign_key: true t.text :body t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_has-0.1.0 | sample/db/migrate/20240711161946_create_articles.rb |