Sha256: 7687b130d58ceaad3b24311569624959ba51cd17021d10d6ce90e6333458746a

Contents?: true

Size: 328 Bytes

Versions: 33

Compression:

Stored size: 328 Bytes

Contents

class SecondValueForDataEntry < ActiveRecord::Migration
  def self.up
    rename_column :data_entries, :value, :value_a
    add_column    :data_entries, :value_b, :decimal, :precision => 24, :scale => 8
  end

  def self.down
    rename_column :data_entries, :value_a, :value
    remove_column :data_entries, :value_b
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.7 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.6 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.5 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.4 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.3 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.2 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.1 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.2.0 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.1.3 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.1.2 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.1.1 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.1.0 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.0.0 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.0.0.rc3 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.0.0.rc2 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-1.0.0.rc1 db/fix/old_migrations/040_second_value_for_data_entry.rb
zena-0.16.9 db/migrate/040_second_value_for_data_entry.rb
zena-1.0.0.beta3 db/migrate/040_second_value_for_data_entry.rb
zena-0.16.8 db/migrate/040_second_value_for_data_entry.rb