Sha256: 3ee8d99541d3bf5ac4e9d70f1af68c68ffc5100d7b9d5d22c6fe24abe081a08e

Contents?: true

Size: 239 Bytes

Versions: 8

Compression:

Stored size: 239 Bytes

Contents

class CreateAssignments < ActiveRecord::Migration
  def self.up
    create_table :assignments do |t|
      t.belongs_to :user
      t.belongs_to :role
      t.timestamps
    end
  end

  def self.down
    drop_table :assignments
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
double_auth_engine-0.0.5 lib/double_auth_engine/generators/double_auth_engine/templates/assignment_migration.rb
double_auth_engine-0.0.5 spec/dummy/db/migrate/20110503035660_create_assignments.rb
double_auth_engine-0.0.4 lib/double_auth_engine/generators/double_auth_engine/templates/assignment_migration.rb
double_auth_engine-0.0.4 spec/dummy/db/migrate/20110503035660_create_assignments.rb
double_auth_engine-0.0.2 lib/double_auth_engine/generators/double_auth_engine/templates/assignment_migration.rb
double_auth_engine-0.0.2 spec/dummy/db/migrate/20110408030357_create_assignments.rb
double_auth_engine-0.0.1 lib/double_auth_engine/generators/double_auth_engine/templates/assignment_migration.rb
double_auth_engine-0.0.1 spec/dummy/db/migrate/20110408030357_create_assignments.rb