Sha256: 13c74118c7302e8818b4903866d1273bf523c2c6377de6570d7ccf44852bf628

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 spec/dummy/db/migrate/20140819181403_create_things.rb
citizen_budget_model-0.0.3 spec/dummy/db/migrate/20140819181403_create_things.rb
citizen_budget_model-0.0.2 spec/dummy/db/migrate/20140819181403_create_things.rb
citizen_budget_model-0.0.1 spec/dummy/db/migrate/20140819181403_create_things.rb