Sha256: a8e6a23e2ea664de23c69f9e1f2e94a46f595d1ecabf5ac25aa489b807513094

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

Sequel.migration do
  change do
    create_table?(:super_auth_edges) do
      primary_key :id

      foreign_key :user_id,       :super_auth_users,       null: true
      foreign_key :group_id,      :super_auth_groups,      null: true
      foreign_key :permission_id, :super_auth_permissions, null: true
      foreign_key :role_id,       :super_auth_roles,       null: true
      foreign_key :resource_id,   :super_auth_resources,   null: true

      DateTime :created_at, null: false, default: Sequel::CURRENT_TIMESTAMP
      DateTime :updated_at, null: false, default: Sequel::CURRENT_TIMESTAMP
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
super_auth-0.1.4 db/migrate/6_edge.rb