jcnetdev-auto_migrations 1.0.200807042 → 1.1.20080704
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.
- data/auto_migrations.gemspec +4 -4
- data/lib/auto_migrations.rb +2 -1
- metadata +7 -6
data/auto_migrations.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'auto_migrations'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.1.20080704'
|
4
4
|
s.date = '2008-07-04'
|
5
5
|
|
6
6
|
s.summary = "Allows migrations to be run automatically based on updating the schema.rb"
|
@@ -10,9 +10,9 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = 'pjhyett@gmail.com'
|
11
11
|
s.homepage = 'http://github.com/pjhyett/auto_migrations'
|
12
12
|
|
13
|
-
s.has_rdoc =
|
14
|
-
|
15
|
-
|
13
|
+
s.has_rdoc = true
|
14
|
+
s.rdoc_options = ["--main", "README"]
|
15
|
+
s.extra_rdoc_files = ["README"]
|
16
16
|
|
17
17
|
s.add_dependency 'rails', ['>= 2.1']
|
18
18
|
|
data/lib/auto_migrations.rb
CHANGED
@@ -134,7 +134,8 @@ module AutoMigrations
|
|
134
134
|
end
|
135
135
|
|
136
136
|
def update_schema_version(version)
|
137
|
-
ActiveRecord::
|
137
|
+
schema_info_table_name = ActiveRecord::Migrator.schema_info_table_name rescue ActiveRecord::Migrator.schema_migrations_table_name
|
138
|
+
ActiveRecord::Base.connection.update("UPDATE #{schema_info_table_name} SET version = #{version}")
|
138
139
|
end
|
139
140
|
|
140
141
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jcnetdev-auto_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.20080704
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PJ Hyett
|
@@ -27,8 +27,8 @@ executables: []
|
|
27
27
|
|
28
28
|
extensions: []
|
29
29
|
|
30
|
-
extra_rdoc_files:
|
31
|
-
|
30
|
+
extra_rdoc_files:
|
31
|
+
- README
|
32
32
|
files:
|
33
33
|
- MIT-LICENSE
|
34
34
|
- README
|
@@ -38,11 +38,12 @@ files:
|
|
38
38
|
- lib/auto_migrations.rb
|
39
39
|
- rails/init.rb
|
40
40
|
- tasks/auto_migrations_tasks.rake
|
41
|
-
has_rdoc:
|
41
|
+
has_rdoc: true
|
42
42
|
homepage: http://github.com/pjhyett/auto_migrations
|
43
43
|
post_install_message:
|
44
|
-
rdoc_options:
|
45
|
-
|
44
|
+
rdoc_options:
|
45
|
+
- --main
|
46
|
+
- README
|
46
47
|
require_paths:
|
47
48
|
- lib
|
48
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|