added sequel and sqlite bits for the table
parent
81b22d0c4a
commit
795f547ff2
2
Gemfile
2
Gemfile
|
|
@ -7,3 +7,5 @@ source "https://rubygems.org"
|
||||||
gem "falcon", "~> 0.42.3"
|
gem "falcon", "~> 0.42.3"
|
||||||
|
|
||||||
gem "roda", "~> 3.72"
|
gem "roda", "~> 3.72"
|
||||||
|
|
||||||
|
gem "sequel", "~> 5.72"
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ GEM
|
||||||
async
|
async
|
||||||
async-pool (0.4.0)
|
async-pool (0.4.0)
|
||||||
async (>= 1.25)
|
async (>= 1.25)
|
||||||
|
bigdecimal (3.1.4)
|
||||||
build-environment (1.13.0)
|
build-environment (1.13.0)
|
||||||
console (1.23.2)
|
console (1.23.2)
|
||||||
fiber-annotation
|
fiber-annotation
|
||||||
|
|
@ -65,6 +66,8 @@ GEM
|
||||||
samovar (2.2.0)
|
samovar (2.2.0)
|
||||||
console (~> 1.0)
|
console (~> 1.0)
|
||||||
mapping (~> 1.0)
|
mapping (~> 1.0)
|
||||||
|
sequel (5.72.0)
|
||||||
|
bigdecimal
|
||||||
timers (4.3.5)
|
timers (4.3.5)
|
||||||
traces (0.11.1)
|
traces (0.11.1)
|
||||||
|
|
||||||
|
|
@ -74,6 +77,7 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
falcon (~> 0.42.3)
|
falcon (~> 0.42.3)
|
||||||
roda (~> 3.72)
|
roda (~> 3.72)
|
||||||
|
sequel (~> 5.72)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.4.19
|
2.4.19
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
Sequel.migration do
|
||||||
|
change do
|
||||||
|
create_table :links do
|
||||||
|
String :url, unique: true, null: false
|
||||||
|
String :code, primary_key: true, unique: true, null: false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Binary file not shown.
Loading…
Reference in New Issue