Sha256: 359130160f06984d923bef66858ac07629470dc8526a6669f2b07e00c3701083

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

class ChangeStorages < ActiveRecord::Migration
  def change
    change_table :users do |t|
      t.integer :storages_files_count, default: 0
      t.integer :storages_files_size,  default: 0
    end

    # [:users, :pages, :posts, :articles, :recipes, :blogs, :notes, :hubs].each do |table_name|
    #   change_table table_name do |t|
    #     t.integer :storage_files_count, default: 0
    #     t.integer :storage_files_size,  default: 0
    #   end
    # end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
the_storages-0.0.1 db/migrate/20130101010102_change_storages.rb