fix migration on open aspects boolean

This commit is contained in:
zhitomirskiyi 2011-02-01 17:56:16 -08:00
parent 21e3c2ae73
commit 358bf0a856
2 changed files with 2 additions and 4 deletions

View file

@ -1,4 +1,4 @@
class AddOpenAspectsToUser < ActiveRecord::Migration
class AddOpenToAspects < ActiveRecord::Migration
def self.up
add_column(:aspects, :open, :boolean, :default => false)
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110130072907) do
ActiveRecord::Schema.define(:version => 20110202015222) do
create_table "aspect_memberships", :force => true do |t|
t.integer "aspect_id", :null => false
@ -313,10 +313,8 @@ ActiveRecord::Schema.define(:version => 20110130072907) do
t.boolean "unread", :default => true, :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "mongo_id"
end
add_index "notifications", ["mongo_id"], :name => "index_notifications_on_mongo_id"
add_index "notifications", ["recipient_id"], :name => "index_notifications_on_recipient_id"
add_index "notifications", ["target_id"], :name => "index_notifications_on_target_id"
add_index "notifications", ["target_type", "target_id"], :name => "index_notifications_on_target_type_and_target_id"