Permalink
Browse files

Added the MigratedModel used to test MigrationMethods.

  • Loading branch information...
1 parent 58f3d12 commit 424b2b666ab079bc567ba7a6a5973ee6587a78ca @postmodern committed Jul 26, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 spec/integration/models/migrated_model.rb
@@ -0,0 +1,19 @@
+require 'dm-is-predefined'
+
+class MigratedModel
+
+ include DataMapper::Resource
+ include DataMapper::Migrations
+
+ is :predefined
+
+ # Primary key of the test model
+ property :id, Serial
+
+ # Name property to test String values
+ property :name, String
+
+ predefine :test1, :name => 'test1'
+ predefine :test2, :name => 'test2'
+
+end

0 comments on commit 424b2b6

Please sign in to comment.