File tree 3 files changed +4
-17
lines changed
3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveRecord::Migrator.migrations_path= ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated ` expand_hash_conditions_for_aggregates ` .
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -1169,13 +1169,6 @@ class Migrator # :nodoc:
1169
1169
class << self
1170
1170
attr_accessor :migrations_paths
1171
1171
1172
- def migrations_path = ( path )
1173
- ActiveSupport ::Deprecation . warn \
1174
- "`ActiveRecord::Migrator.migrations_path=` is now deprecated and will be removed in Rails 6.0. " \
1175
- "You can set the `migrations_paths` on the `connection` instead through the `database.yml`."
1176
- self . migrations_paths = [ path ]
1177
- end
1178
-
1179
1172
# For cases where a table doesn't exist like loading from schema cache
1180
1173
def current_version
1181
1174
MigrationContext . new ( migrations_paths ) . current_version
Original file line number Diff line number Diff line change @@ -78,16 +78,6 @@ def test_passing_migrations_paths_to_assume_migrated_upto_version_is_deprecated
78
78
end
79
79
end
80
80
81
- def test_migrator_migrations_path_is_deprecated
82
- assert_deprecated do
83
- ActiveRecord ::Migrator . migrations_path = "/whatever"
84
- end
85
- ensure
86
- assert_deprecated do
87
- ActiveRecord ::Migrator . migrations_path = "db/migrate"
88
- end
89
- end
90
-
91
81
def test_migration_version_matches_component_version
92
82
assert_equal ActiveRecord ::VERSION ::STRING . to_f , ActiveRecord ::Migration . current_version
93
83
end
You can’t perform that action at this time.
0 commit comments