rawgento_models 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c77a7eac5b823efbe1f0fdbbd67b682ff9d847c4
4
- data.tar.gz: 0946813132d60f6bbfaecea2f0d2a0ede427eef6
3
+ metadata.gz: 27a71f0dbd2d236f10b34c2ee3e93a6bb4ff57b2
4
+ data.tar.gz: c2d58b75a2b8f65fb650ae2e939a30b5c0e4f2b1
5
5
  SHA512:
6
- metadata.gz: 943d479886d358df13d27ec819bc672b9366ca2e91a2fdbc5d337dfe43b3b5d2944fba9c0f473296862ac318734f5bbd704c8e3e44a5abf57af679a49d26a676
7
- data.tar.gz: c198613a6543be2505b234ff82a3d2760436e8d0e3ad6f701e1214eed3d0120133d36da2d9bcda63fb096e496fa2ad33aa2ea9e44f457fd9c1c106959e16472f
6
+ metadata.gz: a7a152eadd781bdc9ae7e9ab7bd46ac572b501c1e543c3c56e299b22f35df1ff6ab38da2ff02df8e2ef79d45780d77c7934603df12a4186be0d2765ceb0efd04
7
+ data.tar.gz: 91dd90d1791dcb0c4914701f3ebb26e3ff16990557c9a138494c60cb3796b5d7c074e592805bc313ea966a3321d92912aaf7eea4a2224f35f1588caf32ccf5d9
data/README.md CHANGED
@@ -27,25 +27,30 @@ Or install it yourself as:
27
27
 
28
28
  $ bundle install
29
29
 
30
+ 2. Add the db-specific tasks to your Rakefile.
31
+
30
32
  # Rakefile
31
33
  RawgentoModels.load_tasks
32
34
 
33
- 2. Setup your databse
35
+ 3. Configure your database
34
36
 
35
37
  # db/config.yml as in a vanilla rails
36
38
  adapter: ...
37
39
  host: ...
38
40
  #...
39
41
 
42
+ 4. Setup your database
43
+
40
44
  # TODO this does not yet work
41
45
  rake db:migrate
42
46
 
43
- 3. Use Models from your application
47
+ 5. Use Models in your application
44
48
 
45
49
  # yourapp.rb
46
50
  require 'rawgento_models'
47
51
 
48
52
  RawgentoModels.establish_connection
53
+ # Or specify your configuration file
49
54
  #RawgentoModels.establish_connection("alternative-config-file.yml")
50
55
 
51
56
  RawgentoModels::LocalProducts.all
@@ -0,0 +1,5 @@
1
+ class ChangeLocalProductShelveColumn < ActiveRecord::Migration
2
+ def change
3
+ change_column :local_products, :shelve_nr, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module RawgentoModels
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rawgento_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Wolfsteller
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -103,6 +103,7 @@ files:
103
103
  - db/migrate/201602151400_create_supplier.rb
104
104
  - db/migrate/201602151420_change_supplier_columns.rb
105
105
  - db/migrate/201602151430_link_supplier.rb
106
+ - db/migrate/201605270920_change_local_product_shelve_column.rb
106
107
  - db/schema.rb
107
108
  - exe/rawgento_models
108
109
  - lib/rawgento_models.rb