Sha256: f52300c272900f1a0e3df79f993b785aae3c97d9c2a3bb4e6bb2b3ace4dbf795

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

class CreateClients < ActiveRecord::Migration[5.1]
  def change
    create_table :clients do |t|
      t.belongs_to :city, null: true, index: true
      t.belongs_to :country, null: true, index: true

      t.string :name, null: true, limit: 64
      t.string :sex, index: true, limit: 6
      t.datetime :birthday, index: true

      t.timestamps
    end

    add_index :clients, :name, name: :clients_name, type: :fulltext

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digital_heroes_startkit-0.1.1.4 lib/generators/project/db/migrate/5_create_clients.rb
digital_heroes_startkit-0.1.1.3 lib/generators/project/db/migrate/5_create_clients.rb
digital_heroes_startkit-0.1.1.2 lib/generators/project/db/migrate/5_create_clients.rb
digital_heroes_startkit-0.1.1.1 lib/generators/project/db/migrate/5_create_clients.rb
digital_heroes_startkit-0.1.1 lib/generators/project/db/migrate/5_create_clients.rb