mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
11 lines
233 B
Ruby
11 lines
233 B
Ruby
require "sequel"
|
|
|
|
DB = Sequel.connect("mysql2://docker.for.mac.localhost/blog?user=#{ENV['DB_USER']}&password=#{ENV['DB_PASS']}")
|
|
|
|
# create a posts table
|
|
DB.create_table :posts do
|
|
primary_key :id
|
|
String :title
|
|
String :body
|
|
end
|