README.md in lazy_migrate-0.1.2 vs README.md in lazy_migrate-0.1.4
- old
+ new
@@ -20,10 +20,38 @@
$ gem install lazy_migrate
## Usage
-TODO: Write usage instructions here
+From within a rails console, go
+
+```
+LazyMigrate.run
+```
+
+You can also invoke lazy_migrate as a rake task either by adding the following to your Rakefile:
+
+```
+spec = Gem::Specification.find_by_name('lazy_migrate')
+load "#{spec.gem_dir}/lib/tasks/lazy_migrate.rake"
+```
+
+Or by creating a rake task yourself like so:
+
+```
+# in lib/tasks/lazy_migrate.rake
+# frozen_string_literal: true
+
+require 'lazy_migrate'
+
+namespace :lazy_migrate do
+ desc 'runs lazy_migrate'
+ task run: :environment do
+ LazyMigrate.run
+ end
+end
+
+```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.