secondbase 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -2
- data/VERSION +1 -1
- data/lib/secondbase/tasks.rb +1 -1
- data/secondbase.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -15,10 +15,13 @@ Secondbase enables Rails to work with, and manage, a second database (almost) tr
|
|
15
15
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
16
16
|
|
17
17
|
== System Requirements
|
18
|
-
Secondbase
|
18
|
+
Secondbase now supports Rails 2.x and Rails 3.x.
|
19
19
|
|
20
|
-
|
20
|
+
== Known Issues
|
21
|
+
The custom migration generator does not work in Rails 2.x. The work around for the time being is to use the normal migration generator provided in Rails 2.x, and then move the migration to db/migrate/secondbase:
|
21
22
|
|
23
|
+
./script/generate migration CreateWidgetsTable
|
24
|
+
mv db/migrate/20101203211338_create_widgets_table.rb db/migrate/secondbase
|
22
25
|
|
23
26
|
== Installation
|
24
27
|
Modify your Gemfile to include Secondbase:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/secondbase/tasks.rb
CHANGED
@@ -161,7 +161,7 @@ namespace :db do
|
|
161
161
|
|
162
162
|
# now lets clone the structure for secondbase
|
163
163
|
use_secondbase('test')
|
164
|
-
ActiveRecord::Base.connection.execute('SET foreign_key_checks = 0')
|
164
|
+
ActiveRecord::Base.connection.execute('SET foreign_key_checks = 0') if secondbase_config(RAILS_ENV)['adapter'][/mysql/]
|
165
165
|
IO.readlines("#{RAILS_ROOT}/db/#{SecondBase::CONNECTION_PREFIX}_#{RAILS_ENV}_structure.sql").join.split("\n\n").each do |table|
|
166
166
|
ActiveRecord::Base.connection.execute(table)
|
167
167
|
end
|
data/secondbase.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{secondbase}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["karledurante"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-29}
|
13
13
|
s.description = %q{Secondbase provides support to Rails to create a homogeneous for a dual database project. Using the rake tasks already familiar to you, this gem enables Rails to work with two primary databases, instead of just one.}
|
14
14
|
s.email = %q{kdurante@customink.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secondbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- karledurante
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-29 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|