Sha256: 5304ba70e49ae59a9d355bced238109845b48a0e30ddbbf16497884d64e3cd15
Contents?: true
Size: 327 Bytes
Versions: 96
Compression:
Stored size: 327 Bytes
Contents
class Block < ActiveRecord::Base def do_work(*args) block = Block.first block.name = "Charlie" block.color = "Black" block.save end end class CreateBlocks < ActiveRecord::Migration def change create_table :blocks do |t| t.string :name t.string :color t.timestamps end end end
Version data entries
96 entries across 96 versions & 1 rubygems