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

Fix test #151

Open
wants to merge 2 commits into
base: master
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
3 changes: 2 additions & 1 deletion lib/seed_dump/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def dump_using_environment(env = {})
# Internal: Array of Strings corresponding to Active Record model class names
# that should be excluded from the dump.
ACTIVE_RECORD_INTERNAL_MODELS = ['ActiveRecord::SchemaMigration',
'ActiveRecord::InternalMetadata']
'ActiveRecord::InternalMetadata',
'primary::SchemaMigration']

# Internal: Retrieves an Array of Active Record model class constants to be
# dumped.
Expand Down
20 changes: 10 additions & 10 deletions spec/factories/another_samples.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FactoryBot.define do
factory :another_sample do
string 'string'
text 'text'
integer 42
float 3.14
decimal 2.72
datetime DateTime.parse('July 4, 1776 7:14pm UTC')
time Time.parse('3:15am UTC')
date Date.parse('November 19, 1863')
binary 'binary'
boolean false
string { 'string' }
text { 'text' }
integer { 42 }
float { 3.14 }
decimal { 2.72 }
datetime { DateTime.parse('July 4, 1776 7:14pm UTC') }
time { Time.parse('3:15am UTC') }
date { Date.parse('November 19, 1863') }
binary { 'binary' }
boolean { false }
end
end
24 changes: 12 additions & 12 deletions spec/factories/samples.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FactoryBot.define do
factory :sample do
string 'string'
text 'text'
integer 42
float 3.14
decimal 2.72
datetime DateTime.parse('July 4, 1776 7:14pm UTC')
time Time.parse('3:15am UTC')
date Date.parse('November 19, 1863')
binary 'binary'
boolean false
created_at DateTime.parse('July 20, 1969 20:18 UTC')
updated_at DateTime.parse('November 10, 1989 4:20 UTC')
string { 'string' }
text { 'text' }
integer { 42 }
float { 3.14 }
decimal { 2.72 }
datetime { DateTime.parse('July 4, 1776 7:14pm UTC') }
time { Time.parse('3:15am UTC') }
date { Date.parse('November 19, 1863') }
binary { 'binary' }
boolean { false }
created_at { DateTime.parse('July 20, 1969 20:18 UTC') }
updated_at { DateTime.parse('November 10, 1989 4:20 UTC') }
end
end
20 changes: 10 additions & 10 deletions spec/factories/yet_another_samples.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FactoryBot.define do
factory :yet_another_sample do
string 'string'
text 'text'
integer 42
float 3.14
decimal 2.72
datetime DateTime.parse('July 4, 1776 7:14pm UTC')
time Time.parse('3:15am UTC')
date Date.parse('November 19, 1863')
binary 'binary'
boolean false
string { 'string' }
text { 'text' }
integer { 42 }
float { 3.14 }
decimal { 2.72 }
datetime { DateTime.parse('July 4, 1776 7:14pm UTC') }
time { Time.parse('3:15am UTC') }
date { Date.parse('November 19, 1863') }
binary { 'binary' }
boolean { false }
end
end