migration_collapser 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
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 = '
|
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
|
@@ -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.
|
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 ==
|
18
|
+
MigrationCollapser::Version::TINY.should == 1
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|