Sha256: cb87c1bf4cb2257d470ae3ed8e850a3eadfbd4f9133d5399c38fd69067697e5f

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

class CreateSpreeTenants < ActiveRecord::Migration[7.0]
  # If using a different tenant model, you will need to create a migration for it and remove this one.
  def change
    create_table :spree_tenants do |t|
      t.string :name
      t.string :subdomain # Only used if setting tenant by subdomain
      t.string :domain # Only used if setting tenant by domain

      t.timestamps
    end

    add_index :spree_tenants, :name, unique: true
    add_index :spree_tenants, :subdomain, unique: true
    add_index :spree_tenants, :domain, unique: true
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
solidus_acts_as_tenant-0.0.5 db/migrate/20241204105318_create_spree_tenants.rb
solidus_act_as_tenant-0.0.4 db/migrate/20241204105318_create_spree_tenants.rb
solidus_act_as_tenant-0.0.3 db/migrate/20241204105318_create_spree_tenants.rb