Skip to content

Commit 8321450

Browse files
author
Mattia Roccoberton
committed
Add integration specs and a dummy_base path
1 parent 6a161c5 commit 8321450

42 files changed

Lines changed: 400 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pkg/
88
/spec/dummy??/log/
99
/spec/dummy??/storage/
1010
/spec/dummy??/tmp/
11-
/spec/dummy??/db/schema.rb
1211

1312
/.rubocop-*
1413
/coverage/
File renamed without changes.

spec/dummy60/app/controllers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../dummy_base/app/controllers

spec/dummy60/app/models/post.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../dummy_base/app/models/post.rb

spec/dummy60/app/views/posts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../dummy_base/app/views/posts

spec/dummy60/config/routes.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

spec/dummy60/config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../dummy_base/config/routes.rb
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class CreatePosts < ActiveRecord::Migration[6.0]
2+
def change
3+
create_table :posts do |t|
4+
t.string :title
5+
t.text :content
6+
t.boolean :published
7+
8+
t.timestamps
9+
end
10+
end
11+
end

spec/dummy60/db/schema.rb

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This file is auto-generated from the current state of the database. Instead
2+
# of editing this file, please use the migrations feature of Active Record to
3+
# incrementally modify your database, and then regenerate this schema definition.
4+
#
5+
# This file is the source Rails uses to define your schema when running `rails
6+
# db:schema:load`. When creating a new database, `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.
10+
#
11+
# It's strongly recommended that you check this file into your version control system.
12+
13+
ActiveRecord::Schema.define(version: 2022_02_02_010101) do
14+
15+
# These are extensions that must be enabled in order to support this database
16+
enable_extension "plpgsql"
17+
18+
create_table "active_storage_attachments", force: :cascade do |t|
19+
t.string "name", null: false
20+
t.string "record_type", null: false
21+
t.bigint "record_id", null: false
22+
t.bigint "blob_id", null: false
23+
t.datetime "created_at", null: false
24+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
25+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
26+
end
27+
28+
create_table "active_storage_blobs", force: :cascade do |t|
29+
t.string "key", null: false
30+
t.string "filename", null: false
31+
t.string "content_type"
32+
t.text "metadata"
33+
t.bigint "byte_size", null: false
34+
t.string "checksum", null: false
35+
t.datetime "created_at", null: false
36+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
37+
end
38+
39+
create_table "active_storage_db_files", force: :cascade do |t|
40+
t.string "ref", null: false
41+
t.binary "data", null: false
42+
t.datetime "created_at", null: false
43+
t.index ["ref"], name: "index_active_storage_db_files_on_ref", unique: true
44+
end
45+
46+
create_table "active_storage_variant_records", force: :cascade do |t|
47+
t.bigint "blob_id", null: false
48+
t.string "variation_digest", null: false
49+
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
50+
end
51+
52+
create_table "posts", force: :cascade do |t|
53+
t.string "title"
54+
t.text "content"
55+
t.boolean "published"
56+
t.datetime "created_at", precision: 6, null: false
57+
t.datetime "updated_at", precision: 6, null: false
58+
end
59+
60+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
61+
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
62+
end

spec/dummy60/app/models/concerns/.keep renamed to spec/dummy61/app/assets/config/active_storage_db_manifest.js

File renamed without changes.

0 commit comments

Comments
 (0)