up: migrates to rails 7 the test migrations

main
Washington Botelho 2022-05-17 22:38:26 -03:00
parent c10446f8b4
commit cfd21b9ece
12 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddCommentOnRatingRatesTable < ActiveRecord::Migration[5.0]
class AddCommentOnRatingRatesTable < ActiveRecord::Migration[7.0]
def change
add_column :rating_rates, :comment, :text
add_column :reviews, :comment, :text

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class AddExtraScopesOnRatingRatesTable < ActiveRecord::Migration[5.0]
class AddExtraScopesOnRatingRatesTable < ActiveRecord::Migration[7.0]
def change
add_column :rating_rates, :scope_1, :string
add_column :rating_rates, :scope_2, :string

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateArticlesTable < ActiveRecord::Migration[5.0]
class CreateArticlesTable < ActiveRecord::Migration[7.0]
def change
create_table :articles do |t|
t.string :name, null: false

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateAuthorsTable < ActiveRecord::Migration[5.0]
class CreateAuthorsTable < ActiveRecord::Migration[7.0]
def change
create_table :authors do |t|
t.string :name, null: false

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateCategoriesTable < ActiveRecord::Migration[5.0]
class CreateCategoriesTable < ActiveRecord::Migration[7.0]
def change
create_table :categories do |t|
t.string :name, null: false

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateCommentsTable < ActiveRecord::Migration[5.0]
class CreateCommentsTable < ActiveRecord::Migration[7.0]
def change
create_table :comments
end

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateGlobalsTable < ActiveRecord::Migration[5.0]
class CreateGlobalsTable < ActiveRecord::Migration[7.0]
def change
create_table :globals do |t|
end

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRateTable < ActiveRecord::Migration[5.0]
class CreateRateTable < ActiveRecord::Migration[7.0]
def change
create_table :rating_rates do |t|
t.decimal :value, default: 0, precision: 25, scale: 16

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateRatingTable < ActiveRecord::Migration[5.0]
class CreateRatingTable < ActiveRecord::Migration[7.0]
def change
create_table :rating_ratings do |t|
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateReviewRatingsTable < ActiveRecord::Migration[5.0]
class CreateReviewRatingsTable < ActiveRecord::Migration[7.0]
def change
create_table :review_ratings do |t|
t.decimal :average, default: 0, mull: false, precision: 25, scale: 16

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateReviewsTable < ActiveRecord::Migration[5.0]
class CreateReviewsTable < ActiveRecord::Migration[7.0]
def change
create_table :reviews do |t|
t.decimal :value, default: 0, precision: 25, scale: 16

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class CreateToysTable < ActiveRecord::Migration[5.0]
class CreateToysTable < ActiveRecord::Migration[7.0]
def change
create_table :toys do |t|
end