Skip to content

Commit 8d00876

Browse files
author
Mattia Roccoberton
committed
Update dummy app for development
1 parent 1b0ea2b commit 8d00876

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

bin/rails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This command will automatically be run when you run "rails" with Rails gems
55
# installed from the root of your application.
66

7-
ENV['RAILS_ENV'] ||= 'test'
7+
# ENV['RAILS_ENV'] ||= 'test'
88

99
ENGINE_ROOT = File.expand_path('..', __dir__)
1010
ENGINE_PATH = File.expand_path('../lib/activeadmin/dynamic_fields/engine', __dir__)

spec/dummy/app/assets/stylesheets/active_admin.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
//
1717
// .status_tag { background: #6090DB; }
1818

19+
form fieldset > ol > li.boolean label { width: 100%; }
20+
1921
.red { color: #a00; }

spec/dummy/config/database.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ default: &default
66
test:
77
<<: *default
88
database: db/test.sqlite3
9+
10+
development:
11+
<<: *default
12+
database: db/dev.sqlite3

spec/dummy/db/schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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-
# 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
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
77
# be faster and is potentially less error prone than running all of your
88
# migrations from scratch. Old migrations may fail to apply correctly if those
99
# migrations use external dependencies or application code.
@@ -16,9 +16,9 @@
1616
t.string "namespace"
1717
t.text "body"
1818
t.string "resource_type"
19-
t.integer "resource_id"
19+
t.bigint "resource_id"
2020
t.string "author_type"
21-
t.integer "author_id"
21+
t.bigint "author_id"
2222
t.datetime "created_at", precision: 6, null: false
2323
t.datetime "updated_at", precision: 6, null: false
2424
t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"

0 commit comments

Comments
 (0)