mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* add migration to create slug for apps * update migration file to include default slug population * update schemafile * add capability to get app by slug * add capability to frontend to set and fetch app by slug * remove unrelated changes from lint * respond default 204 itself when success else render error * make input field to show error when slug taken * wip: show error message * Cleanup * add new route to fetch app by slug * add slug to show json jbuilder * update react components to fetch app by both id and slug * fix launch link not being set Co-authored-by: navaneeth <navaneethpk@outlook.com>
10 lines
225 B
Ruby
Executable file
10 lines
225 B
Ruby
Executable file
class AddSlugToApps < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :apps, :slug, :string
|
|
add_index :apps, [:organization_id, :slug]
|
|
|
|
App.find_each do |app|
|
|
app.update(slug: app.id)
|
|
end
|
|
end
|
|
end
|