Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump schema when polishing seed data #1151

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion card/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.18.0
0.18.1
4 changes: 2 additions & 2 deletions card/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = { address: "localhost", port: 1025 }

# Use SQL instead of Active Record's schema dumper when creating the test database.
# Use SQL instead of ActiveRecord's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# config.active_record.schema_format = :sql

# FIXME: - add back the next one when we go back to 3.2
# Raise exception on mass assignment protection for Active Record models
# Raise exception on mass assignment protection for ActiveRecord models
# config.active_record.mass_assignment_sanitizer = :strict

# Print deprecation notices to the stderr
Expand Down
2 changes: 1 addition & 1 deletion card/db/schema.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# of editing this file, please use the migrations feature of ActiveRecord to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
Expand Down
1 change: 1 addition & 0 deletions card/mod/core/lib/tasks/card/seed.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace :card do

# desc "finalize seed data with migrations, installations, asset coding, and cleaning"
task polish: :environment do
ENV["DECKO_DUMP_SCHEMA"] = "true"
ENV["STAMP_MIGRATIONS"] = "true"

invoke_card_tasks %w[update assets:code]
Expand Down
2 changes: 1 addition & 1 deletion decko/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TestCase
# Read Mike Clark's excellent walkthrough at
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
#
# Every Active Record database supports transactions except MyISAM tables
# Every ActiveRecord database supports transactions except MyISAM tables
# in MySQL. Turn off transactional fixtures in this case; however, if you
# don't care one way or the other, switching from MyISAM to InnoDB tables
# is recommended.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.