Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9b0375df
Commit
9b0375df
authored
Jun 07, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor schema_spec.rb for CE-EE parity and simplicity
parent
ddc8f14c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/migrations/active_record/schema_spec.rb
spec/migrations/active_record/schema_spec.rb
+4
-4
No files found.
spec/migrations/active_record/schema_spec.rb
View file @
9b0375df
...
...
@@ -5,10 +5,10 @@ require 'spec_helper'
describe
ActiveRecord
::
Schema
do
let
(
:latest_migration_timestamp
)
do
migrations_paths
=
%w[db ee/db]
.
product
(
%w[migrate post_migrate]
).
each_with_object
([])
do
|
migration_dir
,
memo
|
memo
<<
Rails
.
root
.
join
(
*
migration_dir
,
'*'
)
end
migrations_paths
=
%w[db ee/db]
.
product
(
%w[migrate post_migrate]
)
.
map
{
|
path
|
Rails
.
root
.
join
(
*
path
,
'*'
)
}
migrations
=
Dir
[
*
migrations_paths
]
migrations
.
map
{
|
migration
|
File
.
basename
(
migration
).
split
(
'_'
).
first
.
to_i
}.
max
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment