From 77aaeced89cb84404cf69f8b23834520de3214a9 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Wed, 26 Sep 2018 17:16:54 -0400 Subject: Add migrations_paths option to model generator --- activerecord/lib/rails/generators/active_record/model/model_generator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/rails') 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 -- cgit v1.2.3