Sha256: 22c331202ae273c53a382dd2d1eef03d0945dcc9762ea867164a1ed152b87daf

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

class CreateTopics < ActiveRecord::Migration[5.2]
  def change
    create_table :topics do |t|
      t.string :title
      t.string :slug
      t.string :color
      t.bigint :views

      t.timestamps
    end
    add_index :topics, :slug, unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendly_slug-0.1.6 friendly_slug_gem_test/db/migrate/20180630053922_create_topics.rb