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

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