Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to output Rails migration file #52

Open
nishio-dens opened this issue Dec 25, 2017 · 0 comments
Open

Add option to output Rails migration file #52

nishio-dens opened this issue Dec 25, 2017 · 0 comments

Comments

@nishio-dens
Copy link
Owner

nishio-dens commented Dec 25, 2017

$ bin/convergence -i test.rb -c config.yml --dump-rails-migration --filename testdump

output

#Filename: 20171225000000_testdump.rb
class TestDump < ActiveRecord::Migration[5.0]
  def change
    create_table :test do |t|
      t.string :something, null: false, limit: 5000
      t.timestamps null: false
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant