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.7 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.7 spec/tmp/db/migrate/20170509173928_create_authorizations.rb
curupira-0.1.7 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.6 spec/tmp/db/migrate/20170509170657_create_authorizations.rb
curupira-0.1.6 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.6 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.4 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.4 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.4 spec/tmp/db/migrate/20160930024821_create_authorizations.rb
curupira-0.1.3 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.3 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.3 spec/tmp/db/migrate/20150323194120_create_authorizations.rb
curupira-0.1.2 spec/tmp/db/migrate/20150320032240_create_authorizations.rb
curupira-0.1.2 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.2 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.1 lib/generators/curupira/templates/db/migrate/create_authorizations.rb
curupira-0.1.1 spec/tmp/db/migrate/20150319143756_create_authorizations.rb
curupira-0.1.1 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.0 spec/dummy/db/migrate/20150305011942_create_authorizations.rb
curupira-0.1.0 spec/tmp/db/migrate/20150318190313_create_authorizations.rb