Sha256: 29fce2f0369c628bf12917152232388aa59580dcd23f421f44799212aff5b978
Contents?: true
Size: 395 Bytes
Versions: 26
Compression:
Stored size: 395 Bytes
Contents
class CreateProjects < ActiveRecord::Migration 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 Project.create(name: 'Project 1') Project.create(name: 'Project 2') end end
Version data entries
26 entries across 26 versions & 1 rubygems