Sha256: 66a6e3ad4580ae12e006ef1204add66047cdb32681d1ea56c619bdb9c5afc4e0

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

class CreateComments < ActiveRecord::Migration[7.1]
  def change
    create_table :comments do |t|
      t.bigint :post_id
      t.bigint :author_id
      t.text :body
      t.timestamps

      t.index :post_id
      t.index :author_id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/spec/db/migrate/20241109182017_create_comments.rb