* 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>
12 lines
279 B
Ruby
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
|