Sha256: a65f676113971f4f83982b337bc5e5b2d914eb8c99cd647b9a07ae285c94875a

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

# Creates the table for the join model between conferences and categories.
# origin: M
class CreateConferenceCategory < ActiveRecord::Migration

  def self.up
    create_table :conference_categories do |t|
      t.integer :conference_id
      t.integer :category_id
    end
  end

  def self.down
    drop_table :conference_categories
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/db/migrate/20110118104438_create_conference_category.rb
serum-rails-0.2.0 spec/test_apps/rails-2-3/db/migrate/20110118104438_create_conference_category.rb
serum-rails-0.1.1 spec/test_app/db/migrate/20110118104438_create_conference_category.rb
serum-rails-0.1.0 spec/test_app/db/migrate/20110118104438_create_conference_category.rb