Sha256: 0c782a6282e10a19db0a7f0d8c86af53fda222ebfa1979e192b4b7433bdf83a6

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def change
    create_table :roles do |t|
      t.references :user
      t.references :project
      t.string :name, null: false
      
      t.timestamps
    end
    
    add_index :roles, [:user_id, :project_id]
    add_index :roles, [:user_id, :project_id, :name]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 db/migrate/20130407195450_create_roles.rb