up: migrates to rails 7 the test migrations
parent
c10446f8b4
commit
cfd21b9ece
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue