Sha256: 7cf811dd622b7c5af36470a22a2127764f2627531781f9dcd9310ac10c9e6a41
Contents?: true
Size: 382 Bytes
Versions: 15
Compression:
Stored size: 382 Bytes
Contents
class DefaultColumnValues < ActiveRecord::Migration def self.up create_child(:rack_locomotives, :parent => :locomotives) do |t| t.column :bidirectional, :boolean, :default => false t.column :narrow_gauge, :boolean, :default => true t.column :rail_system, :string, :default => 'Abt' end end def self.down drop_child :rack_locomotives end end
Version data entries
15 entries across 15 versions & 1 rubygems