sequential 0.0.3 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 554ce5313498f74335ce882f3ed2e7852385daa9
4
- data.tar.gz: f48888ad9fe5d0a6ba8ef237799e582d368a7104
3
+ metadata.gz: d7d306cbad25aff8b148854c126af4fa6fabe01b
4
+ data.tar.gz: 08da892745f5a4d80da168e2a3d30d20947453dd
5
5
  SHA512:
6
- metadata.gz: 17304da936fa779cb8e4ed7bed8c7a31f85c24039de945929fc9e294c4ead85c53101af4a39e30b48b643cbb569ad0a9a4ad2a1e5fa866e3905f63de33aa5d76
7
- data.tar.gz: b2e97905f381142003ff135140f2334c40c120c4ff5c3b49137b27dc67aff2f3a7f67bab78b0f0b85098683b9f15294e1aa729ac7944c31a2847f94a9d8d9802
6
+ metadata.gz: d150a9b5e838754af69f8212a22ec0b1692480e026bc898228fee1e6fbd0786ce479df336537316bf092946fb2ab7493a187b2fc2508aafe608a123159a234eb
7
+ data.tar.gz: cfb079dde942dc39aab187690057f7ff2469787268a781c22126e8b9bd4129f797541bf64a1112342cd83f5459be085d9f358c90e08062b67fd32f464340f6da
@@ -8,5 +8,7 @@ class CreateSequential < ActiveRecord::Migration
8
8
  t.integer :value
9
9
  t.timestamps
10
10
  end
11
+
12
+ add_index :sequential, [:model, :column, :scope, :scope_value], unique: true
11
13
  end
12
14
  end
@@ -1,3 +1,3 @@
1
1
  module Sequential
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1"
3
3
  end
@@ -8,5 +8,7 @@ class CreateSequential < ActiveRecord::Migration
8
8
  t.integer :value
9
9
  t.timestamps
10
10
  end
11
+
12
+ add_index :sequential, [:model, :column, :scope, :scope_value], unique: true
11
13
  end
12
14
  end
@@ -0,0 +1,62 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20131126174222) do
15
+
16
+ create_table "comments", force: true do |t|
17
+ t.string "title"
18
+ t.integer "absolute_number"
19
+ t.integer "sequential_id"
20
+ t.integer "post_id"
21
+ t.datetime "created_at"
22
+ t.datetime "updated_at"
23
+ end
24
+
25
+ create_table "invoices", force: true do |t|
26
+ t.integer "client_id"
27
+ t.integer "sequential_id"
28
+ end
29
+
30
+ create_table "posts", force: true do |t|
31
+ t.integer "author_id"
32
+ t.integer "sequential_id"
33
+ end
34
+
35
+ create_table "products", force: true do |t|
36
+ t.integer "price"
37
+ t.integer "sequential_id"
38
+ t.integer "category_id"
39
+ t.datetime "created_at"
40
+ t.datetime "updated_at"
41
+ end
42
+
43
+ create_table "sequential", force: true do |t|
44
+ t.string "model"
45
+ t.string "column"
46
+ t.string "scope"
47
+ t.string "scope_value"
48
+ t.integer "value"
49
+ t.datetime "created_at"
50
+ t.datetime "updated_at"
51
+ end
52
+
53
+ add_index "sequential", ["model", "column", "scope", "scope_value"], name: "index_sequential_on_model_and_column_and_scope_and_scope_value", unique: true
54
+
55
+ create_table "stories", force: true do |t|
56
+ t.string "title"
57
+ t.integer "story_number"
58
+ t.datetime "created_at"
59
+ t.datetime "updated_at"
60
+ end
61
+
62
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequential
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: '0.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-05 00:00:00.000000000 Z
12
+ date: 2013-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -120,10 +120,11 @@ files:
120
120
  - test/dummy/config/routes.rb
121
121
  - test/dummy/db/migrate/20131104000033_create_posts.rb
122
122
  - test/dummy/db/migrate/20131104000212_create_invoices.rb
123
- - test/dummy/db/migrate/20131104003146_create_sequential.rb
124
123
  - test/dummy/db/migrate/20131104003505_create_products.rb
125
124
  - test/dummy/db/migrate/20131104015719_create_stories.rb
126
125
  - test/dummy/db/migrate/20131104020142_create_comments.rb
126
+ - test/dummy/db/migrate/20131126174222_create_sequential.rb
127
+ - test/dummy/db/schema.rb
127
128
  - test/dummy/db/seeds.rb
128
129
  - test/dummy/lib/assets/.keep
129
130
  - test/dummy/lib/tasks/.keep
@@ -190,10 +191,11 @@ test_files:
190
191
  - test/dummy/config/routes.rb
191
192
  - test/dummy/db/migrate/20131104000033_create_posts.rb
192
193
  - test/dummy/db/migrate/20131104000212_create_invoices.rb
193
- - test/dummy/db/migrate/20131104003146_create_sequential.rb
194
194
  - test/dummy/db/migrate/20131104003505_create_products.rb
195
195
  - test/dummy/db/migrate/20131104015719_create_stories.rb
196
196
  - test/dummy/db/migrate/20131104020142_create_comments.rb
197
+ - test/dummy/db/migrate/20131126174222_create_sequential.rb
198
+ - test/dummy/db/schema.rb
197
199
  - test/dummy/db/seeds.rb
198
200
  - test/dummy/lib/assets/.keep
199
201
  - test/dummy/lib/tasks/.keep