diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/084_alter_profile_photo.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/db/migrate/084_alter_profile_photo.rb b/db/migrate/084_alter_profile_photo.rb new file mode 100644 index 000000000..52e798b23 --- /dev/null +++ b/db/migrate/084_alter_profile_photo.rb @@ -0,0 +1,9 @@ +class AlterProfilePhoto < ActiveRecord::Migration + def self.up + remove_column :profile_photos, :user_id + end + + def self.down + raise "Reverse migrations not supported" + end +end diff --git a/db/schema.rb b/db/schema.rb index 2e6406ad7..d1b682d48 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 83) do +ActiveRecord::Schema.define(:version => 84) do create_table "acts_as_xapian_jobs", :force => true do |t| t.string "model", :null => false @@ -144,8 +144,7 @@ ActiveRecord::Schema.define(:version => 83) 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.integer "user_id", :null => false + t.binary "data", :null => false end create_table "public_bodies", :force => true do |t| |