Class: CreateParticipantLicenses

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/reso/templates/create_participant_licenses.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/reso/templates/create_participant_licenses.rb', line 2

def change
  create_table :participant_licenses, options: 'DEFAULT CHARSET=utf8' do |t|
    t.references :license_category, index: true, null: false
    t.string :license_number
    t.string :jurisdiction
    t.string :state_or_province
    t.references :participant, index: true, null: false, foreign_key: true

    t.timestamps
  end
end