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

Version Path
updateable_views_inheritance-1.4.8 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.7 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.6 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.5 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.4 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.3 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.2 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.1 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.4.0 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.3.0 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.2.2 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.2.1 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.2.0 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.1.2 test/fixtures/migrations/5_default_column_values.rb
updateable_views_inheritance-1.1.1 test/fixtures/migrations/5_default_column_values.rb