active_record_schema 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -196,7 +196,7 @@ class InitContents < ActiveRecord::Migration
196
196
  def change
197
197
  add_column :contents, :type, :string
198
198
  add_column :contents, :title, :string
199
- add_column :contents, :author_id, :string
199
+ add_column :contents, :author_id, :integer
200
200
  add_column :contents, :body, :text
201
201
  add_column :contents, :url, :string
202
202
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "active_record_schema"
8
- s.version = "0.3.4"
7
+ s.name = %q{active_record_schema}
8
+ s.version = "0.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["mcasimir"]
12
- s.date = "2012-05-08"
13
- s.description = "ActiveRecordSchema is an ActiveRecord extension that allows you to write the database schema for a model within the model itself and to generate migrations directly from models."
14
- s.email = "maurizio.cas@gmail.com"
11
+ s.authors = [%q{mcasimir}]
12
+ s.date = %q{2012-05-11}
13
+ s.description = %q{ActiveRecordSchema is an ActiveRecord extension that allows you to write the database schema for a model within the model itself and to generate migrations directly from models.}
14
+ s.email = %q{maurizio.cas@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md"
@@ -39,11 +39,11 @@ Gem::Specification.new do |s|
39
39
  "lib/generators/active_record_schema/migration/templates/migration_from_model.rb.erb",
40
40
  "lib/generators/active_record_schema/model/model_generator.rb"
41
41
  ]
42
- s.homepage = "http://github.com/mcasimir/active_record_schema"
43
- s.licenses = ["MIT"]
44
- s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.24"
46
- s.summary = "ActiveRecord extension allowing to write schema in models and to generate migrations from models"
42
+ s.homepage = %q{http://github.com/mcasimir/active_record_schema}
43
+ s.licenses = [%q{MIT}]
44
+ s.require_paths = [%q{lib}]
45
+ s.rubygems_version = %q{1.8.5}
46
+ s.summary = %q{ActiveRecord extension allowing to write schema in models and to generate migrations from models}
47
47
 
48
48
  if s.respond_to? :specification_version then
49
49
  s.specification_version = 3
@@ -33,7 +33,7 @@ module ActiveRecordSchema
33
33
  skip_index = options.delete(:index) == false
34
34
 
35
35
  foreign_key = options[:foreign_key] || "#{name}_id"
36
- field :"#{foreign_key}"
36
+ field :"#{foreign_key}", :integer
37
37
 
38
38
  if options[:polymorphic]
39
39
  foreign_type = options[:foreign_type] || "#{name}_type"
metadata CHANGED
@@ -1,58 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_record_schema
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.4
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.3.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - mcasimir
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2012-05-11 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: rails
16
- requirement: !ruby/object:Gem::Requirement
17
+ requirement: &id001 !ruby/object:Gem::Requirement
17
18
  none: false
18
- requirements:
19
+ requirements:
19
20
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ - !ruby/object:Gem::Version
22
+ version: "3.0"
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
30
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
31
27
  name: jeweler
32
- requirement: !ruby/object:Gem::Requirement
28
+ requirement: &id002 !ruby/object:Gem::Requirement
33
29
  none: false
34
- requirements:
30
+ requirements:
35
31
  - - ~>
36
- - !ruby/object:Gem::Version
32
+ - !ruby/object:Gem::Version
37
33
  version: 1.8.3
38
34
  type: :development
39
35
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 1.8.3
46
- description: ActiveRecordSchema is an ActiveRecord extension that allows you to write
47
- the database schema for a model within the model itself and to generate migrations
48
- directly from models.
36
+ version_requirements: *id002
37
+ description: ActiveRecordSchema is an ActiveRecord extension that allows you to write the database schema for a model within the model itself and to generate migrations directly from models.
49
38
  email: maurizio.cas@gmail.com
50
39
  executables: []
40
+
51
41
  extensions: []
52
- extra_rdoc_files:
42
+
43
+ extra_rdoc_files:
53
44
  - LICENSE.txt
54
45
  - README.md
55
- files:
46
+ files:
56
47
  - Gemfile
57
48
  - Gemfile.lock
58
49
  - LICENSE.txt
@@ -75,32 +66,34 @@ files:
75
66
  - lib/generators/active_record_schema/migration/templates/migration_from_model.rb.erb
76
67
  - lib/generators/active_record_schema/model/model_generator.rb
77
68
  homepage: http://github.com/mcasimir/active_record_schema
78
- licenses:
69
+ licenses:
79
70
  - MIT
80
71
  post_install_message:
81
72
  rdoc_options: []
82
- require_paths:
73
+
74
+ require_paths:
83
75
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
76
+ required_ruby_version: !ruby/object:Gem::Requirement
85
77
  none: false
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- segments:
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 401825820335667031
82
+ segments:
91
83
  - 0
92
- hash: 2848044232575768801
93
- required_rubygems_version: !ruby/object:Gem::Requirement
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
86
  none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
99
91
  requirements: []
92
+
100
93
  rubyforge_project:
101
- rubygems_version: 1.8.24
94
+ rubygems_version: 1.8.5
102
95
  signing_key:
103
96
  specification_version: 3
104
- summary: ActiveRecord extension allowing to write schema in models and to generate
105
- migrations from models
97
+ summary: ActiveRecord extension allowing to write schema in models and to generate migrations from models
106
98
  test_files: []
99
+