thirteen-tien-len/db/migrate/20230510103640_add_slug_to_tables.rb
2023-05-10 14:15:43 +00:00

7 lines
158 B
Ruby

class AddSlugToTables < ActiveRecord::Migration[5.2]
def change
add_column :tables, :slug, :string
add_index :tables, :slug, unique: true
end
end