Skip to content

Commit 6c77088

Browse files
authored
Merge pull request #78 from G5/rails_7
rails 7 friendly
2 parents 9b1c4ee + f698ea5 commit 6c77088

12 files changed

+25
-22
lines changed

Diff for: .ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.5.1
1+
ruby-2.7.2

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [4.0.0] - 2024-10-14
6+
###
7+
- Rails 7 support
58
## [3.1.0] - 2018-09-05
69
###
710
- [Rails 6 support](https://github.com/G5/storext/pull/65)

Diff for: lib/storext/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Storext
2-
VERSION = "3.3.0"
2+
VERSION = "4.0.0"
33
end

Diff for: spec/dummy/db/migrate/20141126071057_install_hstore.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class InstallHstore < ActiveRecord::Migration
1+
class InstallHstore < ActiveRecord::Migration[4.2]
22
def change
33
enable_extension :hstore
44
end

Diff for: spec/dummy/db/migrate/20141126071133_create_books.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateBooks < ActiveRecord::Migration
1+
class CreateBooks < ActiveRecord::Migration[4.2]
22
def change
33
create_table :books do |t|
44
t.hstore :data

Diff for: spec/dummy/db/migrate/20141127001905_create_authors.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateAuthors < ActiveRecord::Migration
1+
class CreateAuthors < ActiveRecord::Migration[4.2]
22
def change
33
create_table :authors do |t|
44
t.hstore :data

Diff for: spec/dummy/db/migrate/20141128051741_add_another_hstore_to_book.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddAnotherHstoreToBook < ActiveRecord::Migration
1+
class AddAnotherHstoreToBook < ActiveRecord::Migration[4.2]
22
def change
33
add_column :books, :another_hstore, :hstore
44
end

Diff for: spec/dummy/db/migrate/20150112063603_create_phones.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreatePhones < ActiveRecord::Migration
1+
class CreatePhones < ActiveRecord::Migration[4.2]
22
def change
33
create_table :phones do |t|
44
t.hstore :data

Diff for: spec/dummy/db/migrate/20150113011502_create_cars.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateCars < ActiveRecord::Migration
1+
class CreateCars < ActiveRecord::Migration[4.2]
22
def change
33
create_table :cars do |t|
44
t.hstore :data

Diff for: spec/dummy/db/migrate/20150130013803_create_coffees.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateCoffees < ActiveRecord::Migration
1+
class CreateCoffees < ActiveRecord::Migration[4.2]
22
def change
33
create_table :coffees do |t|
44
t.hstore :data

Diff for: spec/dummy/db/schema.rb

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@
22
# of editing this file, please use the migrations feature of Active Record to
33
# incrementally modify your database, and then regenerate this schema definition.
44
#
5-
# Note that this schema.rb definition is the authoritative source for your
6-
# database schema. If you need to create the application database on another
7-
# system, you should be using db:schema:load, not running all the migrations
8-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
9-
# you'll amass, the slower it'll run and the greater likelihood for issues).
5+
# This file is the source Rails uses to define your schema when running `bin/rails
6+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7+
# be faster and is potentially less error prone than running all of your
8+
# migrations from scratch. Old migrations may fail to apply correctly if those
9+
# migrations use external dependencies or application code.
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema.define(version: 20150130013803) do
13+
ActiveRecord::Schema.define(version: 2015_01_30_013803) do
1414

1515
# These are extensions that must be enabled in order to support this database
16-
enable_extension "plpgsql"
1716
enable_extension "hstore"
17+
enable_extension "plpgsql"
1818

19-
create_table "authors", force: :cascade do |t|
19+
create_table "authors", id: :serial, force: :cascade do |t|
2020
t.hstore "data"
2121
end
2222

23-
create_table "books", force: :cascade do |t|
23+
create_table "books", id: :serial, force: :cascade do |t|
2424
t.hstore "data"
2525
t.hstore "another_hstore"
2626
end
2727

28-
create_table "cars", force: :cascade do |t|
28+
create_table "cars", id: :serial, force: :cascade do |t|
2929
t.hstore "data"
3030
end
3131

32-
create_table "coffees", force: :cascade do |t|
32+
create_table "coffees", id: :serial, force: :cascade do |t|
3333
t.hstore "data"
3434
end
3535

36-
create_table "phones", force: :cascade do |t|
36+
create_table "phones", id: :serial, force: :cascade do |t|
3737
t.hstore "data"
3838
end
3939

Diff for: storext.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
1818
s.test_files = Dir["test/**/*"]
1919

2020
s.add_dependency "virtus"
21-
s.add_dependency "activerecord", [">= 4.0", "< 6.2"]
21+
s.add_dependency "activerecord", ">= 4.0"
2222

2323
s.add_development_dependency "pg"
2424
s.add_development_dependency "rspec"

0 commit comments

Comments
 (0)