cirandas.net

ref: master

plugins/currency/db/migrate/20130613152930_create_currency_enterprises.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
class CreateCurrencyEnterprises < ActiveRecord::Migration
  def self.up
    create_table :currency_plugin_currency_enterprises do |t|
      t.integer :currency_id
      t.integer :enterprise_id
      t.boolean :is_organizer, :default => false

      t.timestamps
    end
  end

  def self.down
    drop_table :currency_plugin_currency_enterprises
  end
end