mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +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
|