Sha256: 9da1d18bd5361c92a2c013fcf5ea97b2174c06ab1458503a3b9b121a4970a523

Contents?: true

Size: 207 Bytes

Versions: 28

Compression:

Stored size: 207 Bytes

Contents

class CreateTeams < ActiveRecord::Migration
  def change
    create_table :teams do |t|
      t.references :tenant
      t.string :name

      t.timestamps
    end
    add_index :teams, :tenant_id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
milia-0.3.38 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.34 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.33 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.32 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.31 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.30 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.29 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.28 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.27 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.26 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.25 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.24 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.23 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.22 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.21 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.20 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.19 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.18 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.17 test/rails_app/db/migrate/20111013050753_create_teams.rb
milia-0.3.16 test/rails_app/db/migrate/20111013050753_create_teams.rb