Noosfero/noosfero

View on GitHub
plugins/foo/db/migrate/20111218120200_create_foo_plugin_bars.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateFooPluginBars < ActiveRecord::Migration[5.1]
  def self.up
    create_table :foo_plugin_bars do |t|
      t.string :name
    end
    add_column :profiles, :bar_id, :integer
  end

  def self.down
    drop_table :foo_plugin_bars
    remove_column :profile, :bar_id
  end
end