aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/084_alter_profile_photo.rb4
-rw-r--r--db/schema.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/084_alter_profile_photo.rb b/db/migrate/084_alter_profile_photo.rb
index 52e798b23..d2717b047 100644
--- a/db/migrate/084_alter_profile_photo.rb
+++ b/db/migrate/084_alter_profile_photo.rb
@@ -1,9 +1,9 @@
class AlterProfilePhoto < ActiveRecord::Migration
def self.up
- remove_column :profile_photos, :user_id
+ remove_column :users, :profile_photo_id
end
def self.down
- raise "Reverse migrations not supported"
+ raise "No reverse migration"
end
end
diff --git a/db/schema.rb b/db/schema.rb
index d1b682d48..f2a8812b0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -144,7 +144,8 @@ ActiveRecord::Schema.define(:version => 84) do
add_index "post_redirects", ["updated_at"], :name => "index_post_redirects_on_updated_at"
create_table "profile_photos", :force => true do |t|
- t.binary "data", :null => false
+ t.binary "data", :null => false
+ t.integer "user_id"
end
create_table "public_bodies", :force => true do |t|
@@ -243,7 +244,6 @@ ActiveRecord::Schema.define(:version => 84) do
t.datetime "last_daily_track_email", :default => '2000-01-01 00:00:00'
t.string "admin_level", :default => "none", :null => false
t.text "ban_text", :default => "", :null => false
- t.integer "profile_photo_id"
end
add_index "users", ["url_name"], :name => "index_users_on_url_name", :unique => true