Sha256: bdf04877f5e7983d2e6188cb8f8c37f288402d78717ba62346ee54acee9cd5c2

Contents?: true

Size: 228 Bytes

Versions: 12

Compression:

Stored size: 228 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.references :account, null: false

      t.timestamps null: false
    end

    add_index :users, :account_id, unique: true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
openstax_accounts-7.13.1 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.13.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.12.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.11.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.10.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.9.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.8.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.7.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.6.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.5.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.4.0 spec/dummy/db/migrate/1000_create_users.rb
openstax_accounts-7.3.0 spec/dummy/db/migrate/1000_create_users.rb