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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b00b8618
Commit
b00b8618
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
c9e3a73e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
spec/migrations/active_record/schema_spec.rb
spec/migrations/active_record/schema_spec.rb
+5
-1
No files found.
spec/migrations/active_record/schema_spec.rb
View file @
b00b8618
...
...
@@ -5,7 +5,11 @@ require 'spec_helper'
describe
ActiveRecord
::
Schema
do
let
(
:latest_migration_timestamp
)
do
migrations
=
Dir
[
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'*'
),
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'*'
)]
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