rake_migrations 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c850d111f569d518302584ed778749527c7c8171
4
- data.tar.gz: 2aa92a6c492f662322fb47fc8ddcacf99b85539f
3
+ metadata.gz: 98a51052b64ba4d945b862d44e21b89c130e54e8
4
+ data.tar.gz: a6d9393c1dfb0a4d63677bf05f93476ba710ed08
5
5
  SHA512:
6
- metadata.gz: fe7d697c8dc07eb20166b37c9eb69877c30d1652f1a146d10754a820d9747712d7e01c5d38e83bf47278c6427b170a30b73d36bac7b8a3d45e9476e069635ee1
7
- data.tar.gz: 27a77e06e377e7f2acf67502102c810413535e16a6d6b1d184833a3aefe94cba44edd6d732c5f611c2a8feb66b071d49a71d02928c5c67fb35a3cc7b83d91a59
6
+ metadata.gz: 7016a63a2a2ec21087b486e35c0f3d7ed70c5c4c50543400baa72a6807f0f6eb392ce3e3bfa0a0d3a3e88125e9de95484b1aa1e81c277e5da599a1236d3eb752
7
+ data.tar.gz: b7e2775f68646c105f4e1d5011d3bc4e593c911b855afdaea05dfbfde343bf48eec41ed68a234ebe1e169ad61ba528cb45728cfce64981f9c921f3ac447cdfa9
data/README.md CHANGED
@@ -23,6 +23,12 @@ rails g rake_migrations:install
23
23
  rake db:migrate
24
24
  ```
25
25
 
26
+ Finally, open the file 'config/rake_migrations_check.rb' and replace "<database name>" with your database's name:
27
+
28
+ ```ruby
29
+ client = Mysql2::Client.new(host: "localhost", username: "root", database: "<database name>")
30
+ ```
31
+
26
32
  ## Use
27
33
  Whenever somebody from your team wants to create a new run once task, simply generate it by running:
28
34
 
@@ -2,7 +2,7 @@ require 'mysql2'
2
2
 
3
3
  module RakeMigrationsCheck
4
4
  def self.check
5
- client = Mysql2::Client.new(host: "localhost", username: "root", database: "samanage_development")
5
+ client = Mysql2::Client.new(host: "localhost", username: "root", database: "<database name>")
6
6
  results = client.query("select * from rake_migrations").map {|res| res["version"] }
7
7
  rake_migrations_lib = "#{`pwd`.strip}/lib/tasks/rake_migrations/*"
8
8
 
@@ -1,3 +1,3 @@
1
1
  module RakeMigrations
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eyal Eizenberg