Sha256: 4f2934e165d01752f213c47a200a5da07d204690fcf8696651e89716e35ad011

Contents?: true

Size: 614 Bytes

Versions: 4

Compression:

Stored size: 614 Bytes

Contents

class CreateCitizenBudgetModelSimulators < ActiveRecord::Migration
  def up
    create_table :citizen_budget_model_simulators do |t|
      t.belongs_to :organization, index: true

      t.string :equation, null: false, default: ''
      t.string :distribution, null: false, default: ''

      t.datetime :deleted_at, index: true
      t.timestamps
    end
    CitizenBudgetModel::Simulator.create_translation_table!({
      name: {type: :string, null: false, default: ''},
    })
  end

  def down
    drop_table :citizen_budget_model_simulators
    CitizenBudgetModel::Simulator.drop_translation_table!
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 db/migrate/20140411210953_create_citizen_budget_model_simulators.rb
citizen_budget_model-0.0.3 db/migrate/20140411210953_create_citizen_budget_model_simulators.rb
citizen_budget_model-0.0.2 db/migrate/20140411210953_create_citizen_budget_model_simulators.rb
citizen_budget_model-0.0.1 db/migrate/20140411210953_create_citizen_budget_model_simulators.rb