Permalink
Browse files

lhm issue found

  • Loading branch information...
1 parent eb79fc6 commit 5f33f2cd8d2bcf1bc2da2093bd34a5bb2968fd81 @purzelrakete purzelrakete committed Feb 14, 2012
Showing with 7 additions and 0 deletions.
  1. +2 −0 README.md
  2. +1 −0 spec/fixtures/users.ddl
  3. +4 −0 spec/unit/table_spec.rb
View
2 README.md
@@ -1,5 +1,7 @@
# Large Hadron Migrator [![Build Status](https://secure.travis-ci.org/soundcloud/large-hadron-migrator.png)](http://travis-ci.org/soundcloud/large-hadron-migrator)
+Update: There is currently [An issue](https://github.com/soundcloud/large-hadron-migrator/issues/11) with the migration. Fix coming up.
+
Rails style database migrations are a useful way to evolve your data schema in
an agile manner. Most Rails projects start like this, and at first, making
changes is fast and easy.
View
1 spec/fixtures/users.ddl
@@ -5,6 +5,7 @@ CREATE TABLE `users` (
`group` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`comment` varchar(20) DEFAULT NULL,
+ `description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `index_users_on_reference` (`reference`),
KEY `index_users_on_username_and_created_at` (`username`,`created_at`)
View
4 spec/unit/table_spec.rb
@@ -57,6 +57,10 @@
@table.columns["username"][:metadata].must_equal("DEFAULT NULL")
end
+ it "should parse columns with only a name and type" do
+ @table.columns.keys.include?(:description).must_equal true
+ end
+
it "should parse indices in show create table" do
@table.
indices["index_users_on_username_and_created_at"][:metadata].

0 comments on commit 5f33f2c

Please sign in to comment.