Class: CreateClients

Inherits:
Object
  • Object
show all
Defined in:
lib/db/create_clients.rb

Instance Method Summary collapse

Instance Method Details

#callObject



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/db/create_clients.rb', line 2

def call
  return if Rubee::SequelObject::DB.tables.include?(:clients)

  Rubee::SequelObject::DB.create_table(:clients) do
    primary_key(:id)
    String(:name)
    String(:digest_password)
    index(:name)
    # timestamps
    datetime(:created)
    datetime(:updated)
  end
end