Sha256: 912f736743599a9e0f7f44290449b3f330a9ac4689cc4e6632f4e838a75024f9

Contents?: true

Size: 677 Bytes

Versions: 2

Compression:

Stored size: 677 Bytes

Contents

ActiveRecord::Schema.define(version: 0) do
  begin
    drop_table :users
    drop_table :skills
    drop_table :preloads
    drop_table :categories
    drop_table :categories_users
  rescue Exception => e
  end

  create_table :users do |t|
    t.string :name, null: false
    t.string :email, null: false
    t.integer :invitations, null: false, default: 0
  end

  add_index :users, :email, unique: true

  create_table :preloads do |t|
    t.string :name
  end

  create_table :skills do |t|
    t.references :user
  end

  create_table :categories do |t|
  end

  create_table :categories_users, id: false do |t|
    t.references :category
    t.references :user
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
factory_bot-preload-0.1.1 spec/support/app/db/schema.rb
factory_bot-preload-0.1.0 spec/support/app/db/schema.rb