overture 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generators/templates/migration.erb +2 -2
- data/lib/overture.rb +0 -1
- data/lib/overture/database.rb +1 -2
- data/lib/overture/interactor.rb +0 -1
- data/lib/overture/interactor/failure.rb +0 -1
- data/lib/overture/model.rb +0 -1
- data/lib/overture/password_digester.rb +0 -1
- data/lib/overture/version.rb +1 -2
- data/lib/tasks/db.rake +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bc3bb4954eec44c918d74beff3547c612b3ec53621ac03232eb13c0a2fa620b
|
4
|
+
data.tar.gz: c97759c0737c42da34d87bfb47de20ad34c610569b6eda792332a05df855b933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 123b2b6743561b93bf847106fc97772cf9d8d68d42d02e2246b668c5fd11cadf8c32b0d0b5e2e8a4077b59ada702c03249cbbdb17c3114a766ee00b4f387c857
|
7
|
+
data.tar.gz: 388463c1f9f4878b5266ca191005e7a4cf9b151ff613850edfa989527ce5f8a31513f741186a6092dd7d0bfc7effbfb31198a58c87618c93461dabaae98a2f3e
|
@@ -6,8 +6,8 @@ Sequel.migration do
|
|
6
6
|
up do
|
7
7
|
create_table(table_name) do
|
8
8
|
primary_key :id
|
9
|
-
DateTime :created_at, null: false
|
10
|
-
DateTime :updated_at, null: false
|
9
|
+
DateTime :created_at, null: false, default: Sequel.function(:now)
|
10
|
+
DateTime :updated_at, null: false, default: Sequel.function(:now)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
data/lib/overture.rb
CHANGED
data/lib/overture/database.rb
CHANGED
data/lib/overture/interactor.rb
CHANGED
data/lib/overture/model.rb
CHANGED
data/lib/overture/version.rb
CHANGED
data/lib/tasks/db.rake
CHANGED
@@ -12,10 +12,6 @@ namespace :db do
|
|
12
12
|
DB ||= Overture::Database.connect(ENV['DATABASE_URL'])
|
13
13
|
version = args[:version].to_i if args[:version]
|
14
14
|
|
15
|
-
def pk_uuid(name)
|
16
|
-
column name, :uuid, primary_key: true, default: Sequel.function(:uuid_generate_v4)
|
17
|
-
end
|
18
|
-
|
19
15
|
puts "Migrating database to #{version ? "version #{version}" : 'latest version'}..."
|
20
16
|
Sequel::Migrator.run(DB, 'migrations', target: version)
|
21
17
|
end
|
@@ -41,4 +37,3 @@ namespace :db do
|
|
41
37
|
end
|
42
38
|
end
|
43
39
|
end
|
44
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgar JS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|