diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-12 03:17:11 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-12 03:17:11 +0400 |
commit | 8f50c622fada4cf864f432c5c3866624c50a801e (patch) | |
tree | 4ecda43f973c14a0c453fc88c319ff2a760bdbbd /db | |
parent | a7d8535d36cdcb8a009950c0202485513c2e3be6 (diff) |
Fix contentUpdater spec, adjust migration and fix a couple of the js viwes
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20110707234802_likes_on_comments.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/20110707234802_likes_on_comments.rb b/db/migrate/20110707234802_likes_on_comments.rb index 9a65d66c4..7b3e80e75 100644 --- a/db/migrate/20110707234802_likes_on_comments.rb +++ b/db/migrate/20110707234802_likes_on_comments.rb @@ -3,7 +3,7 @@ class LikesOnComments < ActiveRecord::Migration def self.up remove_foreign_key :likes, :posts - add_column :likes, :target_type, :string, :null => false + add_column :likes, :target_type, :string, :limit => 60, :null => false rename_column :likes, :post_id, :target_id add_column :comments, :likes_count, :integer, :default => 0, :null => false diff --git a/db/schema.rb b/db/schema.rb index 4c3cbf3b4..da2eb61fc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -110,7 +110,7 @@ ActiveRecord::Schema.define(:version => 20110707234802) do add_index "invitations", ["sender_id"], :name => "index_invitations_on_sender_id" create_table "likes", :force => true do |t| - t.boolean "positive", :default => true + t.boolean "positive", :default => true t.integer "target_id" t.integer "author_id" t.string "guid" @@ -118,7 +118,7 @@ ActiveRecord::Schema.define(:version => 20110707234802) do t.text "parent_author_signature" t.datetime "created_at" t.datetime "updated_at" - t.string "target_type", :null => false + t.string "target_type", :limit => 60, :null => false end add_index "likes", ["author_id"], :name => "likes_author_id_fk" |