Skip to content

Commit 6b387ae

Browse files
committed
Change ActiveRecord::Migration to ActiveRecord::Migration[7.1]
Changed the line ActiveRecord::Migration to ActiveRecord::Migration[7.1] so that schema loading could work (it is now required for newer versions of Rails) Updated and commented out the load schema task since it fails to find and run the loading of data into the database PostgreSQL container Added the initialize_profile method and add it to the `after_create` portion of the User factory because of the NameError I encountered: NameError: undefined local variable or method `init_profile' for #<FactoryBot::SyntaxRunner:0x00007eaac2e3c560> (NameError)
1 parent 31a0132 commit 6b387ae

File tree

38 files changed

+51
-38
lines changed

38 files changed

+51
-38
lines changed

backend/db/migrate/20160101154821_create_extensions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateExtensions < ActiveRecord::Migration[5.1]
1+
class CreateExtensions < ActiveRecord::Migration[7.1]
22
def change
33
enable_extension "pg_trgm"
44
end

backend/db/migrate/20160106154821_create_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUsers < ActiveRecord::Migration[5.1]
1+
class CreateUsers < ActiveRecord::Migration[7.1]
22
def change
33
create_table :users do |t|
44
## Database authenticatable

backend/db/migrate/20160119185831_create_profiles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateProfiles < ActiveRecord::Migration[5.1]
1+
class CreateProfiles < ActiveRecord::Migration[7.1]
22
def change
33
create_table :profiles do |t|
44
t.belongs_to :user, index: true, foreign_key: true

backend/db/migrate/20160128112500_create_conditions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateConditions < ActiveRecord::Migration[5.1]
1+
class CreateConditions < ActiveRecord::Migration[7.1]
22
def up
33
create_table :conditions do |t|
44
t.boolean :global, default: true

backend/db/migrate/20160128114341_create_user_conditions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUserConditions < ActiveRecord::Migration[5.1]
1+
class CreateUserConditions < ActiveRecord::Migration[7.1]
22
def change
33
create_table :user_conditions do |t|
44
t.belongs_to :user, index: true, foreign_key: true

backend/db/migrate/20160128191053_create_symptoms.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateSymptoms < ActiveRecord::Migration[5.1]
1+
class CreateSymptoms < ActiveRecord::Migration[7.1]
22
def up
33
create_table :symptoms do |t|
44
t.boolean :global, default: true

backend/db/migrate/20160128191329_create_user_symptoms.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUserSymptoms < ActiveRecord::Migration[5.1]
1+
class CreateUserSymptoms < ActiveRecord::Migration[7.1]
22
def change
33
create_table :user_symptoms do |t|
44
t.belongs_to :user, index: true, foreign_key: true

backend/db/migrate/20160128210332_create_trackings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateTrackings < ActiveRecord::Migration[5.1]
1+
class CreateTrackings < ActiveRecord::Migration[7.1]
22
def change
33
create_table :trackings do |t|
44
t.belongs_to :user, index: true, foreign_key: true

backend/db/migrate/20160129063945_create_treatments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateTreatments < ActiveRecord::Migration[5.1]
1+
class CreateTreatments < ActiveRecord::Migration[7.1]
22
def up
33
create_table :treatments do |t|
44
t.boolean :global, default: true

backend/db/migrate/20160129064538_create_user_treatments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUserTreatments < ActiveRecord::Migration[5.1]
1+
class CreateUserTreatments < ActiveRecord::Migration[7.1]
22
def change
33
create_table :user_treatments do |t|
44
t.belongs_to :user, index: true, foreign_key: true

0 commit comments

Comments
 (0)