mirror of
https://github.com/astuto/astuto.git
synced 2025-12-17 04: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
|