rails-generators Questions

4

According to the rails documentation http://guides.rubyonrails.org/migrations.html 2.3 Supported Type Modifiers says it should be possible to modify fields to allow or disallow NULL in the column...
Springspringboard asked 20/1, 2014 at 1:56

3

Is there a recommended way of testing Rails generators with RSpec? The only solution I've found is the Generator Spec gem, that hasn't been updated in over two years.
Twodimensional asked 14/9, 2016 at 10:6

1

Solved

I am trying to generate a new factory inside a module and I basically required require 'rails/generators' and I am calling the command below. Notice that it creates the file inside the test fol...
Floret asked 2/1, 2017 at 19:8

1

Solved

I need to override these migration templates: https://github.com/rails/rails/blob/e20dd73df42d63b206d221e2258cc6dc7b1e6068/activerecord/lib/rails/generators/active_record/migration/templates/migra...
1

© 2022 - 2024 — McMap. All rights reserved.