Organizing
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
APP_ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
|
||||
CONFIG = Configuration.new
|
||||
@@ -0,0 +1,9 @@
|
||||
DB = Sequel.connect(CONFIG.database_url)
|
||||
|
||||
# DB.drop_table(:pastes) if DB.table_exists?(:pastes)
|
||||
|
||||
DB.create_table(:pastes) do
|
||||
primary_key :id
|
||||
String :syntax
|
||||
Text :contents
|
||||
end unless DB.table_exists?(:pastes)
|
||||
Reference in New Issue
Block a user