10 lines
226 B
Ruby
Raw Normal View History

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