Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4610

Rails generate migration not working

$
0
0

I've got below command run on console

rails g migration payslips first_name:string last_name:string

But this just generates empty file like below

class Payslips < ActiveRecord::Migration  def change  endend

I cannot find the reason why. Is there something wrong with the console generate command?


Viewing all articles
Browse latest Browse all 4610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>