Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the MigratedModel used to test MigrationMethods.

  • Loading branch information...
commit 424b2b666ab079bc567ba7a6a5973ee6587a78ca 1 parent 58f3d12
@postmodern authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 spec/integration/models/migrated_model.rb
View
19 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
Please sign in to comment.
Something went wrong with that request. Please try again.