From d669d8d0034f38b00483ccf40d491a9714464533 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 18 Sep 2011 10:42:34 -0700 Subject: [PATCH] schema compliance --- db/migrate/20110917084645_create_domains.rb | 8 ++++---- db/seeds.rb | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/db/migrate/20110917084645_create_domains.rb b/db/migrate/20110917084645_create_domains.rb index 0644d0b..4d39696 100644 --- a/db/migrate/20110917084645_create_domains.rb +++ b/db/migrate/20110917084645_create_domains.rb @@ -2,11 +2,11 @@ class CreateDomains < ActiveRecord::Migration def change create_table :domains do |t| t.string :name, :limit => 255, :null => false - t.string :master, :limit => 128 - t.integer :last_check, :limit => 50 + t.string :master, :limit => 128, :default => nil + t.integer :last_check, :limit => 50, :default => nil t.string :type, :limit => 6, :null => false - t.integer :notified_serial - t.string :account, :limit => 40 + t.integer :notified_serial, :default => nil + t.string :account, :limit => 40, :default => nil t.timestamps end diff --git a/db/seeds.rb b/db/seeds.rb index d05092e..5d26536 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,3 +1,4 @@ -User.create :email => 'user@app.com', +user = User.create :email => 'user@app.com', :password => 'useruser', :password_confirmation => 'useruser' +user.confirm! \ No newline at end of file