Sha256: 0082faf5b90a2e4d33122b5a8aad702d58e2e0a48affad20a7458081c8e4d9e9

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

class CreateCasSites < ActiveRecord::Migration[5.0]
  def change
    reversible do |dir|
      dir.up do
        enable_extension "uuid-ossp"
      end
    end

    create_table :cas_sites, id: :uuid do |t|
      t.string :name
      t.timestamps
    end
    add_index :cas_sites, :name
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 db/migrate/20170129212144_create_cas_sites.rb
cas-cms-1.0.0.alpha1 db/migrate/20170129212144_create_cas_sites.rb
cas-cms-0.1.3 db/migrate/20170129212144_create_cas_sites.rb
cas-cms-0.1.2 db/migrate/20170129212144_create_cas_sites.rb
cas-cms-0.1.1 db/migrate/20170129212144_create_cas_sites.rb
cas-cms-0.1.0 db/migrate/20170129212144_create_cas_sites.rb