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.15 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.13 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.12 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.11 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.10 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.9 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.8 test/rails_app/db/migrate/20111013053403_create_authors.rb
milia-0.3.7 test/rails_app/db/migrate/20111013053403_create_authors.rb