Sha256: b9c6e23068fb7fe64386d02d69ddf423656e969f111eac718025928c24de2eb5

Contents?: true

Size: 524 Bytes

Versions: 64

Compression:

Stored size: 524 Bytes

Contents

class AddAvatarsToUsers < ActiveRecord::Migration<%= migration_version %>
  def self.up
    add_column :users, "avatar_file_name",    :string
    add_column :users, "avatar_content_type", :string
    add_column :users, "avatar_file_size",    :integer
    add_column :users, "avatar_updated_at",   :datetime
  end

  def self.down
    remove_column :users, "avatar_file_name"
    remove_column :users, "avatar_content_type"
    remove_column :users, "avatar_file_size"
    remove_column :users, "avatar_updated_at"
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-5.0.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-5.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.6.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.5.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.4.2 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.4.1 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.4.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.3.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.2.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-2.9.6 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb
hyrax-3.1.0 lib/generators/hyrax/templates/db/migrate/20160328222158_add_avatars_to_users.rb.erb