Sha256: 4b1fc4a929907457baff53381917de202c995f5b769b3b5a890ada7313bcf885

Contents?: true

Size: 271 Bytes

Versions: 28

Compression:

Stored size: 271 Bytes

Contents

class CreateAuthors < ActiveRecord::Migration
  def change
    create_table :authors do |t|
      t.references :tenant
      t.references :user
      t.string :name

      t.timestamps
    end
    add_index :authors, :tenant_id
    add_index :authors, :user_id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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