Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djezzzl committed Dec 24, 2024
1 parent f44ac4e commit da31a3d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
rails-version: 'rails-example'
- ruby-version: '3.0'
rails-version: 'rails6-example'
- ruby-version: '3.2.0'
- ruby-version: '3.2'
rails-version: 'rails7-example'
- ruby-version: '3.3'
rails-version: 'rails8-example'
Expand Down
2 changes: 0 additions & 2 deletions rails7-example/Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.0"

gem 'database_consistency', path: '../', group: :development, require: false

gem "pg"
Expand Down
2 changes: 1 addition & 1 deletion rails7-example/config/database.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default: &default
adapter: postgresql
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
username: test
Expand Down
11 changes: 3 additions & 8 deletions rails7-example/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2021_12_29_101039) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

create_table "companies", force: :cascade do |t|
t.boolean "available", default: false, null: false
t.boolean "active"
Expand All @@ -29,10 +26,8 @@
t.datetime "updated_at", null: false
end

create_table "organizations", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
# Could not dump table "organizations" because of following StandardError
# Unknown type 'bigserial' for column 'id'

create_table "users", force: :cascade do |t|
t.string "email", null: false
Expand All @@ -41,7 +36,7 @@
t.string "address"
t.string "code", null: false
t.string "slug", null: false
t.bigint "company_id", null: false
t.integer "company_id", limit: 8, null: false
t.integer "country_id"
t.integer "organization_id", null: false
t.integer "invitable_id", null: false
Expand Down
9 changes: 2 additions & 7 deletions rails7-example/db/secondary_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_07_22_090559) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

create_table "companies", force: :cascade do |t|
t.string "name", null: false
end

create_table "users", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
# Could not dump table "users" because of following StandardError
# Unknown type 'uuid' for column 'id'

end

0 comments on commit da31a3d

Please sign in to comment.