1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Alberto Almagro
39da171f3c Remove DB naming ambiguity
In some places this file referred to the database in three different ways: database, DB and db. The last one caused confusion with the db namespace and the db folder. This commit removes this ambiguity by using the whole word 'database' everywhere
2017-11-26 11:37:48 +01:00
Eileen M. Uchitelle
a45f234b02
Merge pull request #30773 from y-yagi/fix_30765
Make automatically synchronize test schema work inside engine
2017-11-12 19:18:49 -05:00
Akira Matsuda
6a728491b6 [Railties] require_relative => require
This basically reverts 618268b4b9
2017-10-21 22:48:26 +09:00
yuuji.yaginuma
87598c8c80 Make automatically synchronize test schema work inside engine
In Rails engine, migration files are in under `db/migrate` of engine.
Therefore, when rake task is executed in engine, `db/migrate` is
automatically added to `DatabaseTasks.migrations_paths`.
a18cf23a9c/activerecord/lib/active_record/railtie.rb (L39..L43)

However, if execute the rake task under dummy app, migration files will not
be loaded because engine's migration path setting process is not called.

Therefore, in order to load migration files correctly, it is necessary to
execute rake task under engine.

Fixes #30765
2017-10-02 15:50:58 +09:00
Pat Allan
acea68de02 Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
Akira Matsuda
618268b4b9 [Railties] require => require_relative 2017-07-01 18:35:43 +09:00
yuuji.yaginuma
a42351acbc Add app:update task to engines
Occasionally we update the file generated by engine.
Therefore, I think that there is a task for updating as well as
application in the engine, it is convenient for updating.
2017-03-20 15:37:45 +09:00
Xavier Noria
477568ee33 modernizes hash syntax in railties 2016-08-06 19:38:55 +02:00
Xavier Noria
69ab3eb57e applies new string literal convention in railties/lib
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00
yuuji.yaginuma
3ffa5a15cc make rake proxy work in rails engines 2016-01-31 09:49:48 +09:00
arvind
dad0c2677c Replace AR with ActiveRecord to make it more readable [ci skip] 2015-09-08 16:02:16 +05:30
Prathamesh Sonpatki
aca25cb0de Improved grammar and replaced 'dbs' slang with 'databases' 2013-06-27 10:58:08 +05:30
Aaron Patterson
d476129691 do not set the ENGINE_PATH to nil 2012-05-24 15:54:30 -07:00
Steven Anderson
c547e968f5 Added environment rake task to engines 2011-10-18 15:46:39 +01:00
Jake Varghese
467c9b6e23 fix engines rake tasks 2011-07-04 15:48:15 -05:00
Piotr Sarnacki
c29a4485a2 Refactoring of application's task in engine.rake 2010-12-19 15:59:55 +01:00
Piotr Sarnacki
b50024f2ff Do not load all application's task in generated engine 2010-12-19 15:12:13 +01:00