Sha256: 4fc65681ff5ff62796fd4468be20cbf7394d8bbb845b866436cab95466487de1

Contents?: true

Size: 526 Bytes

Versions: 31

Compression:

Stored size: 526 Bytes

Contents

  class AddAvatarColumnsToUser < ActiveRecord::Migration
    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

31 entries across 31 versions & 6 rubygems

Version Path
rails_admin-0.6.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.5.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.9 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.8 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.7 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.6 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.5 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.4 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.3 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.2 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.1 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.4.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.3.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.2.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.1.2 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.1.1 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.1.0 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.0.5 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb
rails_admin-0.0.4 spec/dummy_app/db/migrate/00000000000012_add_avatar_columns_to_user.rb