Sha256: 39063bf96d6c6975c1643468f6dcdf29840edf09b2ca07c374aacfd20ac35cd8

Contents?: true

Size: 254 Bytes

Versions: 11

Compression:

Stored size: 254 Bytes

Contents

class AddUnitColumns < ActiveRecord::Migration
  def self.up

    add_column :terms, :unit, :string
    add_column :terms, :per_unit, :string

  end

  def self.down

    remove_column :terms, :unit, :string
    remove_column :terms, :per_unit

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
amee-data-persistence-2.3.0 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.2.1 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.2.0 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.1.0 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-1.2.0 generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.0.3 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.0.2 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.0.1 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-2.0.0 lib/generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-1.1.0 generators/persistence/templates/db/migrate/002_add_unit_columns.rb
amee-data-persistence-1.0.0 generators/persistence/templates/db/migrate/002_add_unit_columns.rb