mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
adding slugs to schools and categories
This commit is contained in:
parent
683fc31c5d
commit
1db61cd3e5
13 changed files with 42 additions and 12 deletions
6
db/migrate/20170316194058_add_slug_to_school.rb
Normal file
6
db/migrate/20170316194058_add_slug_to_school.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddSlugToSchool < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :schools, :slug, :string
|
||||
add_index :schools, :slug, unique: true
|
||||
end
|
||||
end
|
||||
6
db/migrate/20170316194122_add_slug_to_category.rb
Normal file
6
db/migrate/20170316194122_add_slug_to_category.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddSlugToCategory < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :categories, :slug, :string
|
||||
add_index :categories, :slug, unique: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue