Sha256: 572694c380133942eff0d7356eaadd63d2f2b4ac5cd1b109c1076671010f611f

Contents?: true

Size: 324 Bytes

Versions: 18

Compression:

Stored size: 324 Bytes

Contents

class CreateProjects < ActiveRecord::Migration[4.2]
  def change
    create_table :projects do |t|
      t.string :name

      20.times do
        t.string "description_#{rand(1_000_000)}"
      end

      20.times do
        t.integer "amount_#{rand(1_000_000)}"
      end

      t.timestamps null: false
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
rails_db-2.4.4 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.4.3 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.4.2 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.4.1 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.4.0 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.3.1 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.3.0 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.2.1 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.2.0 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.1.1 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.1.0 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.6 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.5 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.4 test/dummy/db/migrate/20151014183823_create_projects.rb
xplore-0.0.1.alpha test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.3 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.2 test/dummy/db/migrate/20151014183823_create_projects.rb
rails_db-2.0.1 test/dummy/db/migrate/20151014183823_create_projects.rb