Sha256: 827722be2e18008a6c5b0e0119bf454d67bb9a735a9da7fd1e03be42b5b4b55f

Contents?: true

Size: 507 Bytes

Versions: 5

Compression:

Stored size: 507 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def up
    create_table "roles" do |t|
      t.string   "title"
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "roles_users", :id => false do |t|
      t.integer "user_id"
      t.integer "role_id"
    end

    add_index "roles_users", ["role_id"], :name => "index_roles_users_on_role_id"
    add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id"

  end

  def down
    drop_table :roles
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forge-cli-0.0.10 lib/forge/db/migrate/20130404145209_create_roles.rb
forge-cli-0.0.9 lib/forge/db/migrate/20130404145209_create_roles.rb
forge-cli-0.0.8 lib/forge/db/migrate/20130404145209_create_roles.rb
forge-cli-0.0.7 lib/forge/db/migrate/20130404145209_create_roles.rb
forge-cli-0.0.6 lib/forge/db/migrate/20130404145209_create_roles.rb