Sha256: 975a3e5c4caf703142340b8a430db3e7a3dbd10877960ec8296bfe33f0af2579

Contents?: true

Size: 304 Bytes

Versions: 8

Compression:

Stored size: 304 Bytes

Contents

class CreateRepositories < ActiveRecord::Migration
  def change
    create_table :repositories do |t|
      t.string :name
      t.string :path
      t.references :user
      t.boolean :public

      t.timestamps
    end
    add_index :repositories, :path
    add_index :repositories, :user_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git_wit-0.0.6 test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.6.pre test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.5 test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.4.pre2 test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.4.pre test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.3 test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.2 test/dummy/db/migrate/20130217111055_create_repositories.rb
git_wit-0.0.1 test/dummy/db/migrate/20130217111055_create_repositories.rb