1 2 3 4 5 6 7 8 9 10 11 12
class CreateMemberRoles < ActiveRecord::Migration def self.up create_table :member_roles do |t| t.column :member_id, :integer, :null => false t.column :role_id, :integer, :null => false end end def self.down drop_table :member_roles end end