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

Version Path
cookbook-0.1.6 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.5 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.4 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.3 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.2 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.1 spec/dummy/db/migrate/20210909175711_create_how_tos.rb
cookbook-0.1.0 spec/dummy/db/migrate/20210909175711_create_how_tos.rb