Sha256: 9db113c877dda7fa7c7abbe4a17318f2c1c7875cf22bad4428bf26af0c9b3e89
Contents?: true
Size: 331 Bytes
Versions: 15
Compression:
Stored size: 331 Bytes
Contents
class CreateWithExplicitTable < ActiveRecord::Migration def self.up create_child(:electric_locomotives, :table => :raw_electric_locomotives, :parent => :locomotives) do |t| t.decimal :electricity_consumption, :precision => 6, :scale => 2 end end def self.down drop_child :electric_locomotives end end
Version data entries
15 entries across 15 versions & 1 rubygems