Sha256: affb8fe5e72c4daae565fa81ed0a8101b096edc22d9c2f1d72dd1c8fe06b5e63
Contents?: true
Size: 360 Bytes
Versions: 7
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true # Migration for HowTos, like "How to build a dog house" class CreateHowTos < ActiveRecord::Migration[6.1] def change create_table :how_tos do |t| t.string :name t.string :slug t.text :description t.text :instructions t.timestamps end add_index :how_tos, :slug, unique: true end end
Version data entries
7 entries across 7 versions & 1 rubygems