Sha256: 06c21af62351db0a4df2b8ac1fabc20e7872853f76b35eebe240292f225790f3

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

Sequel.migration do
  change do
    create_table?(:super_auth_groups) do
      primary_key :id
      String :name, null: false
      foreign_key :parent_id, :super_auth_groups, 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/2_groups.rb