Sha256: 4c908cc80684c21d71e631feaac74c8356fabe3d637675943008dc42f7c287b0

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

Sequel.migration do
  change do
    create_table(:roles) do
      primary_key :id
      String :name, null: false
      foreign_key :parent_id, :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

4 entries across 4 versions & 1 rubygems

Version Path
super_auth-0.1.3 db/migrate/4_roles.rb
super_auth-0.1.2 db/migrate/4_roles.rb
super_auth-0.1.1 db/migrate/4_roles.rb
super_auth-0.1.0 db/migrate/4_roles.rb