2013-07-10 19:06:16 +00:00
|
|
|
DB = Sequel.connect(CONFIG.database_url)
|
2013-07-09 07:53:49 +00:00
|
|
|
|
2013-07-09 08:04:03 +00:00
|
|
|
# DB.drop_table(:pastes) if DB.table_exists?(:pastes)
|
|
|
|
|
2013-07-09 07:53:49 +00:00
|
|
|
DB.create_table(:pastes) do
|
|
|
|
primary_key :id
|
2013-07-10 19:06:16 +00:00
|
|
|
String :syntax
|
2013-07-09 07:53:49 +00:00
|
|
|
Text :contents
|
|
|
|
end unless DB.table_exists?(:pastes)
|