diff --git a/db/migrate/20120302172252_add_nested_interval_to_domains.rb b/db/migrate/20120302172252_add_nested_interval_to_domains.rb index 3d11bc9..1649020 100644 --- a/db/migrate/20120302172252_add_nested_interval_to_domains.rb +++ b/db/migrate/20120302172252_add_nested_interval_to_domains.rb @@ -3,8 +3,8 @@ class AddNestedIntervalToDomains < ActiveRecord::Migration add_column :domains, :parent_id, :integer add_column :domains, :lftp, :integer, null: false, default: 0 add_column :domains, :lftq, :integer, null: false, default: 0 - add_column :domains, :rgtp, :integer, null: false - add_column :domains, :rgtq, :integer, null: false + add_column :domains, :rgtp, :integer, null: false, default: 0 + add_column :domains, :rgtq, :integer, null: false, default: 0 add_column :domains, :lft, :float, null: false, limit: 53 add_column :domains, :rgt, :float, null: false, limit: 53 diff --git a/db/schema.rb b/db/schema.rb index 71bf421..caa0bf3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -67,8 +67,8 @@ ActiveRecord::Schema.define(version: 20140526093613) do t.integer "parent_id" t.integer "lftp", default: 0, null: false t.integer "lftq", default: 0, null: false - t.integer "rgtp", null: false - t.integer "rgtq", null: false + t.integer "rgtp", default: 0, null: false + t.integer "rgtq", default: 0, null: false t.float "lft", null: false t.float "rgt", null: false end