Sha256: a78d59e5919775d289b6e9394ce31bd8d8c1b43ae594b8f1acf1ce273af05f7a

Contents?: true

Size: 326 Bytes

Versions: 21

Compression:

Stored size: 326 Bytes

Contents

class CreateAuthorizations < ActiveRecord::Migration
  def change
    create_table :authorizations do |t|
      t.belongs_to :feature, index: true
      t.belongs_to :role, index: true

      t.timestamps null: false
    end
    add_foreign_key :authorizations, :features
    add_foreign_key :authorizations, :roles
  end
end

Version data entries

21 entries across 7 versions & 1 rubygems

Version Path
curupira-0.1.0 lib/generators/curupira/templates/db/migrate/create_authorizations.rb