docbrown/db/migrate/20200826072259_create_profile_field_groups.rb
Michael Kohl 161ed7d55e
[deploy] Introduce ProfileFieldGroup model (#10007)
* Introduce ProfileFieldGroup model

* Make profile_fields_groups name column unique

* Fix some specs

* feat: allow the page to work again

* Add guard clause to data update script

* Remove unused file

* Fix specs

* Add foreign key

Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-08-28 10:51:33 +07:00

12 lines
279 B
Ruby

class CreateProfileFieldGroups < ActiveRecord::Migration[6.0]
def change
create_table :profile_field_groups do |t|
t.string :name, null: false
t.string :description
t.timestamps
end
add_index :profile_field_groups, :name, unique: true
end
end