Sha256: 6e8095ee79a58d2986901069055640b70b4896f17f5ed6f3dd0c3d27112dfe8e

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

Sequel.migration do
  change do
    create_table?(:super_auth_roles) do
      primary_key :id
      String :name, null: false
      foreign_key :parent_id, :super_auth_roles, deferrable: true, type: :integer
      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/4_roles.rb