Skip to content

Commit

Permalink
Correctly set index to version column
Browse files Browse the repository at this point in the history
Rails checks options in migration since Rails 7.1.
Ref: rails/rails#46178
  • Loading branch information
y-yagi committed Oct 26, 2023
1 parent f52fc50 commit 5a7a612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/schema/generic_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

ActiveRecord::Schema.define do
create_table :schema_info, force: :cascade do |t|
t.integer :version, unique: true
t.integer :version
end
add_index :schema_info, :version, unique: true

SchemaInfo.create version: SchemaInfo::VERSION

create_table :group, force: :cascade do |t|
Expand Down

0 comments on commit 5a7a612

Please sign in to comment.