Files
nairobi/db/migrate/20170704105112_add_slugs_to_budget_heading_group.rb
Bertocq eb9d5b9b84 Add slug string column to Budget, Budget::Heading and Budget::Group
Why:

* We're still using id's on routes and other parts of the app, using slugs are more friendly and nice

How:

* Just a migration with a slug column with string type
2017-07-04 17:25:26 +02:00

8 lines
218 B
Ruby

class AddSlugsToBudgetHeadingGroup < ActiveRecord::Migration
def change
add_column :budgets, :slug, :string
add_column :budget_groups, :slug, :string
add_column :budget_headings, :slug, :string
end
end