Browse files

[dm-more] Updated property declarations to use Serial type

  • Loading branch information...
1 parent 59c4abc commit 2b16e5b38397fde2a49dc45a18d665903c852bdb @dkubb dkubb committed May 14, 2009
Showing with 10 additions and 10 deletions.
  1. +3 −3 db/migrations/1_create_people_table.rb
  2. +4 −4 examples/sample_migration.rb
  3. +3 −3 lib/migration_runner.rb
View
6 db/migrations/1_create_people_table.rb
@@ -1,9 +1,9 @@
migration 1, :create_people_table do
up do
create_table :people do
- column :id, Integer, :serial => true
- column :name, String, :size => 50
- column :age, Integer
+ column :id, Integer, :serial => true
+ column :name, String, :size => 50
+ column :age, Integer
end
end
down do
View
8 examples/sample_migration.rb
@@ -11,9 +11,9 @@
migration 1, :create_people_table do
up do
create_table :people do
- column :id, Integer, :serial => true
- column :name, String, :size => 50
- column :age, Integer
+ column :id, Integer, :serial => true
+ column :name, String, :size => 50
+ column :age, Integer
end
end
down do
@@ -41,7 +41,7 @@
# class Person
# include DataMapper::Resource
#
-# property :id, Integer, :serial => true
+# property :id, Serial
# property :name, String, :size => 50
# property :age, Integer
# property :dob, DateTime, :default => Time.now
View
6 lib/migration_runner.rb
@@ -26,9 +26,9 @@ module MigrationRunner
# migration( 1, :create_people_table ) do
# up do
# create_table :people do
- # column :id, Integer, :serial => true
- # column :name, String, :size => 50
- # column :age, Integer
+ # column :id, Integer, :serial => true
+ # column :name, String, :size => 50
+ # column :age, Integer
# end
# end
# down do

0 comments on commit 2b16e5b

Please sign in to comment.