opennorth/citizen_budget_model

View on GitHub
spec/dummy/db/migrate/20140819181403_create_things.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateThings < ActiveRecord::Migration
  def up
    create_table :things do |t|
    end
    Thing.create_translation_table!({
      name: {type: :string, null: false, default: ''},
    })
  end

  def down
    drop_table :things
    Thing.drop_translation_table!
  end
end