mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
8 lines
156 B
Ruby
8 lines
156 B
Ruby
class AddSlugToPosts < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :posts, :slug, :string
|
|
|
|
add_index :posts, :slug, unique: true
|
|
end
|
|
end
|