Sha256: ac42cec3e72ccd7c85f58132309a43c66b27fa7d78be795de6708e60aa3fdf46

Contents?: true

Size: 378 Bytes

Versions: 6

Compression:

Stored size: 378 Bytes

Contents

class CreateExternalServices < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :external_services do |t|
      t.references :subject, null: false, polymorphic: true, index: true

      t.string     :type,    null: false
      t.string     :external_id
      t.text       :extra_data
    end
    add_index :external_services, :external_id
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
external_services-0.5.4 lib/generators/templates/migrations/create_external_services.rb
external_services-0.5.2 lib/generators/templates/migrations/create_external_services.rb
external_services-0.5.1 lib/generators/templates/migrations/create_external_services.rb
external_services-0.5.0 lib/generators/templates/migrations/create_external_services.rb
external_services-0.4.4 lib/generators/templates/migrations/create_external_services.rb
external_services-0.4.3 lib/generators/templates/migrations/create_external_services.rb