Permalink
Browse files

Add schemas for default value of tries

  • Loading branch information...
1 parent d515d09 commit b981bb92cd617ff9dca3ee84e9333f08ce609957 Stephan Hagemann committed Sep 21, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 db/schema.rb
  2. +3 −3 engines/teaser/spec/dummy/db/schema.rb
View
@@ -15,9 +15,9 @@
create_table "teaser_entries", :force => true do |t|
t.string "email"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.integer "tries"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.integer "tries", :default => 0
end
end
@@ -15,9 +15,9 @@
create_table "teaser_entries", :force => true do |t|
t.string "email"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.integer "tries"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.integer "tries", :default => 0
end
end

0 comments on commit b981bb9

Please sign in to comment.