Switch branches/tags
Nothing to show
Find file History
Pull request Compare This branch is 1 commit ahead of winton:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
javascripts
partials
stylesheets
README
options.rb

README

class Trade < ActiveRecord::Base
  
  belongs_to :me,   :class_name => 'Example', :foreign_key => 'me_id'
  belongs_to :them, :class_name => 'Example', :foreign_key => 'them_id'
  
  serialize :history
  serialize :mine
  serialize :theirs
  
end

class CreateTrades < ActiveRecord::Migration
  def self.up
    create_table :trades do |t|
      t.text :history
      t.text :mine
      t.text :theirs
      t.integer :me_id
      t.integer :them_id
      t.timestamps
    end
  end

  def self.down
    drop_table :trades
  end
end