migration_collapser 0.1.0 → 0.1.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -60,7 +60,7 @@ class InitialSchema < ActiveRecord::Migration
60
60
  end
61
61
 
62
62
  def all_tables
63
- execute("SHOW FULL TABLES WHERE table_type = 'VIEW'").all_hashes.map { |x| x.values.last }
63
+ execute("SHOW FULL TABLES WHERE table_type = 'BASE TABLES'").all_hashes.map { |x| x.values.last }
64
64
  end
65
65
 
66
66
  def views
@@ -2,7 +2,7 @@ module MigrationCollapser
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
@@ -3,7 +3,7 @@ require "spec_helper"
3
3
  describe MigrationCollapser do
4
4
  describe "VERSION" do
5
5
  it "should be at 0.0.0" do
6
- MigrationCollapser::Version::STRING.should == "0.1.0"
6
+ MigrationCollapser::Version::STRING.should == "0.1.1"
7
7
  end
8
8
 
9
9
  it "should have major as 0" do
@@ -15,7 +15,7 @@ describe MigrationCollapser do
15
15
  end
16
16
 
17
17
  it "should have tiny as 0" do
18
- MigrationCollapser::Version::TINY.should == 0
18
+ MigrationCollapser::Version::TINY.should == 1
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: migration_collapser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Taylor