Sha256: bbb6b5956159507518996d6054fba1b66ef9360868c85882676bc24e51e646f1

Contents?: true

Size: 351 Bytes

Versions: 14

Compression:

Stored size: 351 Bytes

Contents

class CreateGroups < PeakFlowUtils::ApplicationMigration
  def change
    create_table :peak_flow_utils_groups do |t|
      t.references :handler, null: false
      t.string :identifier, index: true
      t.string :name
      t.timestamps
    end

    add_foreign_key :peak_flow_utils_groups, :peak_flow_utils_handlers, column: "handler_id"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.19 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.18 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.17 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.16 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.15 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.14 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.13 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.12 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.11 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.10 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.9 lib/peak_flow_utils/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.8 app/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.7 app/migrations/20150907070909_create_groups.rb
peak_flow_utils-0.1.6 app/migrations/20150907070909_create_groups.rb