active_record_schema 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/active_record_schema.gemspec +2 -3
- data/lib/active_record_schema/railtie.rb +1 -1
- metadata +2 -3
- data/lib/generators/model_generator.rb +0 -25
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "active_record_schema"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcasimir"]
|
@@ -34,8 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/active_record_schema/schema.rb",
|
35
35
|
"lib/active_record_schema/schema_diff.rb",
|
36
36
|
"lib/generators/migration/from_generator.rb",
|
37
|
-
"lib/generators/migration/templates/migration_from_model.rb.erb"
|
38
|
-
"lib/generators/model_generator.rb"
|
37
|
+
"lib/generators/migration/templates/migration_from_model.rb.erb"
|
39
38
|
]
|
40
39
|
s.homepage = "http://github.com/mcasimir/active_record_schema"
|
41
40
|
s.licenses = ["MIT"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- lib/active_record_schema/schema_diff.rb
|
72
72
|
- lib/generators/migration/from_generator.rb
|
73
73
|
- lib/generators/migration/templates/migration_from_model.rb.erb
|
74
|
-
- lib/generators/model_generator.rb
|
75
74
|
homepage: http://github.com/mcasimir/active_record_schema
|
76
75
|
licenses:
|
77
76
|
- MIT
|
@@ -87,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
86
|
version: '0'
|
88
87
|
segments:
|
89
88
|
- 0
|
90
|
-
hash:
|
89
|
+
hash: 3673735744762631504
|
91
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
91
|
none: false
|
93
92
|
requirements:
|
@@ -1,25 +0,0 @@
|
|
1
|
-
class ModelGenerator < ::Rails::Generators::NamedBase
|
2
|
-
|
3
|
-
def create_model_file
|
4
|
-
create_file "app/models/#{file_name}.rb" do
|
5
|
-
<<-eos
|
6
|
-
class #{class_name} < ActiveRecord::Base
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
eos
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
protected
|
16
|
-
|
17
|
-
def class_name
|
18
|
-
name.camelize
|
19
|
-
end
|
20
|
-
|
21
|
-
def file_name
|
22
|
-
name.underscore
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|