diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2018-09-26 17:16:54 -0400 |
---|---|---|
committer | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2018-09-27 10:35:52 -0400 |
commit | 77aaeced89cb84404cf69f8b23834520de3214a9 (patch) | |
tree | 7e644c6581425760f859a49bf207e13ed56677a3 /activerecord/lib/rails | |
parent | 1930d22936c3bfb883dd4b46173bb902db17bb50 (diff) | |
download | rails-77aaeced89cb84404cf69f8b23834520de3214a9.tar.gz rails-77aaeced89cb84404cf69f8b23834520de3214a9.tar.bz2 rails-77aaeced89cb84404cf69f8b23834520de3214a9.zip |
Add migrations_paths option to model generator
Diffstat (limited to 'activerecord/lib/rails')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/model/model_generator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/rails/generators/active_record/model/model_generator.rb b/activerecord/lib/rails/generators/active_record/model/model_generator.rb index 25e54f3ac8..747c8493b1 100644 --- a/activerecord/lib/rails/generators/active_record/model/model_generator.rb +++ b/activerecord/lib/rails/generators/active_record/model/model_generator.rb @@ -14,6 +14,7 @@ module ActiveRecord class_option :parent, type: :string, desc: "The parent class for the generated model" class_option :indexes, type: :boolean, default: true, desc: "Add indexes for references and belongs_to columns" class_option :primary_key_type, type: :string, desc: "The type for primary key" + class_option :migrations_paths, type: :string, desc: "The migration path for your generated migrations. If this is not set it will default to db/migrate" # creates the migration file for the model. def create_migration_file |