Skip to content
Snippets Groups Projects
Commit eb36ebc3 authored by Tyler R Lemburg's avatar Tyler R Lemburg
Browse files

Add pricture to user table

parent 65ec1d36
Branches
No related tags found
No related merge requests found
...@@ -149,5 +149,8 @@ DEPENDENCIES ...@@ -149,5 +149,8 @@ DEPENDENCIES
thin thin
unicorn unicorn
RUBY VERSION
ruby 2.2.3p173
BUNDLED WITH BUNDLED WITH
1.13.0 1.14.6
...@@ -47,17 +47,6 @@ class AddResourceFields < ActiveRecord::Migration ...@@ -47,17 +47,6 @@ class AddResourceFields < ActiveRecord::Migration
:field_name => 'Model' :field_name => 'Model'
) )
# for each of those resources, add a field_data with its model
Resource.where(:service_space_id => 1).all.each do |resource|
ResourceFieldData.create(
resource_id: resource.id,
resource_field_id: model_field.id,
data: resource.model
)
resource.resource_class_id = tool_class.id
resource.save
end
# lastly, drop the column # lastly, drop the column
remove_column :resources, :model remove_column :resources, :model
end end
......
require 'active_record'
class AddUserPicture < ActiveRecord::Migration
def change
add_column :users, :imagedata, :longblob, :default => nil
add_column :users, :imagemime, :string, :default => nil
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment