Skip to content

Commit

Permalink
Use Rails 6.1 migrations
Browse files Browse the repository at this point in the history
…as we no longer support Rails ≤ 6.0.
  • Loading branch information
ur5us committed Jan 19, 2024
1 parent 5f1c429 commit d8050f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Migration responsible for creating a table with activities
class CreateActivities < ActiveRecord::Migration[5.0]
class CreateActivities < ActiveRecord::Migration[6.1]
def self.up
create_table :activities do |t|
t.belongs_to :trackable, polymorphic: true
Expand Down
2 changes: 1 addition & 1 deletion test/migrations/002_create_articles.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class CreateArticles < ActiveRecord::Migration[5.0]
class CreateArticles < ActiveRecord::Migration[6.1]
def self.up
create_table :articles do |t|
t.string :name
Expand Down
2 changes: 1 addition & 1 deletion test/migrations/003_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class CreateUsers < ActiveRecord::Migration[5.0]
class CreateUsers < ActiveRecord::Migration[6.1]
def self.up
create_table :users do |t|
t.string :name
Expand Down
2 changes: 1 addition & 1 deletion test/migrations/004_add_nonstandard_to_activities.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class AddNonstandardToActivities < ActiveRecord::Migration[5.0]
class AddNonstandardToActivities < ActiveRecord::Migration[6.1]
def change
change_table :activities do |t|
t.string :nonstandard
Expand Down

0 comments on commit d8050f4

Please sign in to comment.