immigrate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 04b07cc73ac791725c30dcdea4c1b9bb18ecd58d
4
+ data.tar.gz: bec1e61a6aabc9b7286c797ad93ec3a18aebb2c6
5
+ SHA512:
6
+ metadata.gz: 0c3ad34bee19ce9bfebee81b8a7342c94ae9b61cb87255fa919e631e7757849d64f5965608cb1455613230aa0e92e5954fd597465a0fc478d9d2fc4fe8643672
7
+ data.tar.gz: 880ac56a20a6c927f8f5caa2c9e66203480fc22713b33a2dc8325dd3db9c823ede893fa60bd64a97808486eb4e87db94f6aa8eaf0c4c26d7c0f34881f5e6bd8d
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ **/schema.rb
12
+ *.log
13
+ *.swp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ addons:
2
+ postgresql: 9.4
3
+
4
+ language: ruby
5
+ rvm:
6
+ - 2.3.0
7
+ - 2.2.4
8
+ - 2.1.8
9
+ - 2.0.0
10
+ - 1.9.3
11
+
12
+ before_install: gem install bundler -v 1.11.2
13
+
14
+ before_script:
15
+ (cd spec/dummy && bundle exec rake db:create)
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at brian.vanloo@pnmac.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in immigrate.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Brian VanLoo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # Immigrate
2
+
3
+ [![Build Status](https://travis-ci.org/ratdaddy/immigrate.svg?branch=master)](https://travis-ci.org/ratdaddy/immigrate)
4
+ [![Code Climate](https://codeclimate.com/github/ratdaddy/immigrate/badges/gpa.svg)](https://codeclimate.com/github/ratdaddy/immigrate)
5
+
6
+ Immigrate adds methods to `ActiveRecord::Migration` to create and manage [foreign-data wrappers](http://www.postgresql.org/docs/current/static/postgres-fdw.html) in PostgreSQL.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'immigrate'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ ## Usage
21
+
22
+ ### Connecting to a Remote Server
23
+
24
+ You will need to have a connection to a remote server before you can create a foreign table. This connection has to be created with connection information and user credentials for the foreign server in a `config/immigrate.yml` file:
25
+
26
+ ```yaml
27
+ development:
28
+ foreign_server:
29
+ host: 192.83.123.89
30
+ port: 5432
31
+ dbname: foreign_db
32
+ user: foreign_user
33
+ password: password
34
+
35
+ production:
36
+ foreign_server:
37
+ host: 192.83.123.90
38
+ port: 5432
39
+ dbname: foreign_db
40
+ user: foreign_user
41
+ password: password
42
+ ```
43
+
44
+ Next you will need to create a migration to create the connection using a standard migration file like `db/migrate/[TIMESTAMP]_create_foreign_connection.rb:
45
+
46
+ ```ruby
47
+ class CreateForeignConnection < ActiveRecord::Migration[5.0]
48
+ def change
49
+ create_foreign_connection :foreign_server
50
+ end
51
+ end
52
+ ```
53
+
54
+ Then you can run the migration as usual:
55
+
56
+ ```sh
57
+ $ rake db:mibrate
58
+ ```
59
+
60
+ Once you have a foreign connection you can now create migrations for the foreign tables you need to access in your application. This also goes in a standard migration file:
61
+
62
+ ```ruby
63
+ class CreatePost < ActiveRecord::Migration[5.0]
64
+ def change
65
+ create_foreign_table :posts do |t|
66
+ t.string :title
67
+ t.text :body
68
+ end
69
+ end
70
+ end
71
+ ```
72
+
73
+ And once again you can run your migrations as usual:
74
+
75
+ ```sh
76
+ $ rake db:mibrate
77
+ ```
78
+
79
+ ## Development
80
+
81
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
82
+
83
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
84
+
85
+ ## Contributing
86
+
87
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ratdaddy/immigrate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
88
+
89
+ ## License
90
+
91
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
92
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'immigrate'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require 'pry'
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/immigrate.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'immigrate/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'immigrate'
8
+ spec.version = Immigrate::VERSION
9
+ spec.authors = ['Brian VanLoo']
10
+ spec.email = ['brian.vanloo@gmail.com']
11
+
12
+ spec.summary = 'Support for PostgreSQL foreign data wrappers in Rails migrations'
13
+ spec.description = 'Adds methods to ActiveRecord::Migration to create and manage foreign-data wrappers in PostgreSQL.'
14
+ spec.homepage = 'https://github.com/ratdaddy/immigrate'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = 'exe'
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_dependency 'railties', '>= 4.0.0'
23
+ spec.add_dependency 'activerecord', '>= 4.0.0'
24
+ spec.add_dependency 'pg'
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.11'
27
+ spec.add_development_dependency 'rake'
28
+ spec.add_development_dependency 'rspec', '~> 3.4'
29
+ spec.add_development_dependency 'database_cleaner'
30
+ end
data/lib/immigrate.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'immigrate/version'
2
+ require 'immigrate/railtie'
3
+ require 'immigrate/foreign_table_definition'
4
+ require 'immigrate/database'
5
+
6
+ module Immigrate
7
+ def self.database
8
+ @@database ||= Database.new
9
+ end
10
+ end
@@ -0,0 +1,19 @@
1
+ module Immigrate
2
+ module CommandRecorder
3
+ def create_foreign_connection *args
4
+ record(:create_foreign_connection, args)
5
+ end
6
+
7
+ def invert_create_foreign_connection *args
8
+ [:drop_foreign_connection, *args]
9
+ end
10
+
11
+ def create_foreign_table *args
12
+ record(:create_foreign_table, args)
13
+ end
14
+
15
+ def invert_create_foreign_table *args
16
+ [:drop_foreign_table, *args]
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,47 @@
1
+ module Immigrate
2
+ class Database
3
+ def create_fdw_extension
4
+ enable_extension :postgres_fdw
5
+ end
6
+
7
+ def drop_fdw_extension
8
+ disable_extension :postgres_fdw
9
+ end
10
+
11
+ def create_server_connection server
12
+ server_config = database_configuration[Rails.env][server.to_s]
13
+ execute <<-SQL
14
+ CREATE SERVER #{server}
15
+ FOREIGN DATA WRAPPER postgres_fdw
16
+ OPTIONS (host '#{server_config['host']}',
17
+ port '#{server_config['port']}',
18
+ dbname '#{server_config['dbname']}')
19
+ SQL
20
+ end
21
+
22
+ def create_user_mapping server
23
+ server_config = database_configuration[Rails.env][server.to_s]
24
+ execute <<-SQL
25
+ CREATE USER MAPPING FOR #{current_user}
26
+ SERVER #{server}
27
+ OPTIONS (user '#{server_config['user']}',
28
+ password '#{server_config['password']}')
29
+ SQL
30
+ end
31
+
32
+ def current_user
33
+ execute("SELECT CURRENT_USER").first['current_user']
34
+ end
35
+
36
+ delegate :execute, :enable_extension, :disable_extension, to: :connection
37
+
38
+ def connection
39
+ ActiveRecord::Base.connection
40
+ end
41
+
42
+ def database_configuration
43
+ yaml = Pathname.new('config/immigrate.yml')
44
+ YAML.load(ERB.new(yaml.read).result)
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,75 @@
1
+ module Immigrate
2
+ class ForeignTableDefinition
3
+ NATIVE_DATABASE_TYPES = {
4
+ string: 'character varying',
5
+ text: 'text',
6
+ integer: 'integer',
7
+ float: 'float',
8
+ decimal: 'decimal',
9
+ datetime: 'timestamp',
10
+ time: 'time',
11
+ date: 'date',
12
+ daterange: 'daterange',
13
+ numrange: 'numrange',
14
+ tsrange: 'tsrange',
15
+ tstzrange: 'tstzrange',
16
+ int4range: 'int4range',
17
+ int8range: 'int8range',
18
+ binary: 'bytea',
19
+ boolean: 'boolean',
20
+ xml: 'xml',
21
+ tsvector: 'tsvector',
22
+ hstore: 'hstore',
23
+ inet: 'inet',
24
+ cidr: 'cidr',
25
+ macaddr: 'macaddr',
26
+ uuid: 'uuid',
27
+ json: 'json',
28
+ jsonb: 'jsonb',
29
+ ltree: 'ltree',
30
+ citext: 'citext',
31
+ point: 'point',
32
+ line: 'line',
33
+ lseg: 'lseg',
34
+ box: 'box',
35
+ path: 'path',
36
+ polygon: 'polygon',
37
+ circle: 'circle',
38
+ bit: 'bit',
39
+ bit_varying: 'bit varying',
40
+ money: 'money',
41
+ }
42
+
43
+ attr_reader :server, :name, :columns
44
+
45
+ def initialize name, server
46
+ @name = name
47
+ @server = server
48
+ @columns = []
49
+ end
50
+
51
+ def column name, type
52
+ @columns << [name, type]
53
+ end
54
+
55
+ NATIVE_DATABASE_TYPES.keys.each do |column_type|
56
+ module_eval <<-CODE, __FILE__, __LINE__ + 1
57
+ def #{column_type} name
58
+ column name, :#{column_type}
59
+ end
60
+ CODE
61
+ end
62
+
63
+ def sql
64
+ "CREATE FOREIGN TABLE #{name} (#{column_definitions}) SERVER #{server}"
65
+ end
66
+
67
+ def column_definitions
68
+ columns.map { |column| "#{column.first} #{native_column_type column.second}"}.join(',')
69
+ end
70
+
71
+ def native_column_type type
72
+ NATIVE_DATABASE_TYPES[type]
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,10 @@
1
+ require 'immigrate/schema_statements'
2
+ require 'immigrate/command_recorder'
3
+
4
+ class ActiveRecord::ConnectionAdapters::AbstractAdapter
5
+ include Immigrate::SchemaStatements
6
+ end
7
+
8
+ class ActiveRecord::Migration::CommandRecorder
9
+ include Immigrate::CommandRecorder
10
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails/railtie'
2
+
3
+ module Immigrate
4
+ class Railtie < Rails::Railtie
5
+ initializer 'immigrate.load' do
6
+ ActiveSupport.on_load :active_record do
7
+ require 'immigrate/loader'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,34 @@
1
+ module Immigrate
2
+ module SchemaStatements
3
+ def create_foreign_connection foreign_server
4
+ database.create_fdw_extension
5
+ database.create_server_connection foreign_server
6
+ database.create_user_mapping foreign_server
7
+ end
8
+
9
+ def drop_foreign_connection _foreign_server
10
+ database.drop_fdw_extension
11
+ end
12
+
13
+ def create_foreign_table foreign_table, foreign_server
14
+ fdw = create_foreign_table_definition(foreign_table, foreign_server)
15
+
16
+ yield fdw if block_given?
17
+
18
+ database.execute fdw.sql
19
+ end
20
+
21
+ def create_foreign_table_definition foreign_table, foreign_server
22
+ ForeignTableDefinition.new foreign_table, foreign_server
23
+ end
24
+
25
+ def drop_foreign_table foreign_table, _foreign_server = nil
26
+ database.execute "DROP FOREIGN TABLE #{foreign_table}"
27
+ end
28
+
29
+ private
30
+ def database
31
+ Immigrate.database
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,3 @@
1
+ module Immigrate
2
+ VERSION = '0.1.0'
3
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: immigrate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian VanLoo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: pg
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.11'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.4'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.4'
97
+ - !ruby/object:Gem::Dependency
98
+ name: database_cleaner
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Adds methods to ActiveRecord::Migration to create and manage foreign-data
112
+ wrappers in PostgreSQL.
113
+ email:
114
+ - brian.vanloo@gmail.com
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".travis.yml"
122
+ - CODE_OF_CONDUCT.md
123
+ - Gemfile
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - immigrate.gemspec
130
+ - lib/immigrate.rb
131
+ - lib/immigrate/command_recorder.rb
132
+ - lib/immigrate/database.rb
133
+ - lib/immigrate/foreign_table_definition.rb
134
+ - lib/immigrate/loader.rb
135
+ - lib/immigrate/railtie.rb
136
+ - lib/immigrate/schema_statements.rb
137
+ - lib/immigrate/version.rb
138
+ homepage: https://github.com/ratdaddy/immigrate
139
+ licenses:
140
+ - MIT
141
+ metadata: {}
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubyforge_project:
158
+ rubygems_version: 2.4.5.1
159
+ signing_key:
160
+ specification_version: 4
161
+ summary: Support for PostgreSQL foreign data wrappers in Rails migrations
162
+ test_files: []
163
+ has_rdoc: