Sha256: 5b698dcc3884390a51958813a05ec007c78ff0a34493a5afaaaf6bf8d9f4dbe0

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

class CreateTenants < ActiveRecord::Migration
  tenant :all

  def change
    create_table :tenants do |t|
      t.string :key, null: false
      t.string :value, null: false

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_tenant-0.0.2 spec/migrations/20120823132854_create_tenants.rb
active_tenant-0.0.1 spec/migrations/20120823132854_create_tenants.rb