├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── MIT-LICENSE ├── README.md ├── Rakefile ├── ci ├── Gemfile.activerecord-3.0.x ├── Gemfile.activerecord-3.1.x ├── Gemfile.activerecord-3.2.x ├── Gemfile.activerecord-4.0.x └── Gemfile.activerecord-4.1.x ├── foreigner.gemspec ├── lib ├── foreigner.rb └── foreigner │ ├── adapter.rb │ ├── connection_adapters │ ├── abstract │ │ ├── foreign_key_definition.rb │ │ ├── schema_definitions.rb │ │ ├── schema_statements.rb │ │ ├── table.rb │ │ └── table_definition.rb │ ├── mysql2_adapter.rb │ ├── mysql_adapter.rb │ ├── noop_adapter.rb │ ├── postgresql_adapter.rb │ └── sql2003.rb │ ├── helper.rb │ ├── loader.rb │ ├── migration │ └── command_recorder.rb │ ├── railtie.rb │ └── schema_dumper.rb └── test ├── foreigner ├── adapter_test.rb ├── connection_adapters │ ├── abstract │ │ ├── schema_statements_test.rb │ │ └── table_definition_test.rb │ ├── mysql2_adapter_test.rb │ ├── mysql_adapter_test.rb │ ├── postgresql_adapter_test.rb │ └── sql2003_test.rb ├── migration │ └── command_recorder_test.rb └── schema_dumper_test.rb └── helper.rb /.gitignore: -------------------------------------------------------------------------------- 1 | Gemfile.lock 2 | 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/Gemfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/Rakefile -------------------------------------------------------------------------------- /ci/Gemfile.activerecord-3.0.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/ci/Gemfile.activerecord-3.0.x -------------------------------------------------------------------------------- /ci/Gemfile.activerecord-3.1.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/ci/Gemfile.activerecord-3.1.x -------------------------------------------------------------------------------- /ci/Gemfile.activerecord-3.2.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/ci/Gemfile.activerecord-3.2.x -------------------------------------------------------------------------------- /ci/Gemfile.activerecord-4.0.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/ci/Gemfile.activerecord-4.0.x -------------------------------------------------------------------------------- /ci/Gemfile.activerecord-4.1.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/ci/Gemfile.activerecord-4.1.x -------------------------------------------------------------------------------- /foreigner.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/foreigner.gemspec -------------------------------------------------------------------------------- /lib/foreigner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner.rb -------------------------------------------------------------------------------- /lib/foreigner/adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/adapter.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/abstract/foreign_key_definition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/abstract/foreign_key_definition.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/abstract/schema_definitions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/abstract/schema_definitions.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/abstract/schema_statements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/abstract/schema_statements.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/abstract/table.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/abstract/table.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/abstract/table_definition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/abstract/table_definition.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/mysql2_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/mysql2_adapter.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/mysql_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/mysql_adapter.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/noop_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/noop_adapter.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/postgresql_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/postgresql_adapter.rb -------------------------------------------------------------------------------- /lib/foreigner/connection_adapters/sql2003.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/connection_adapters/sql2003.rb -------------------------------------------------------------------------------- /lib/foreigner/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/helper.rb -------------------------------------------------------------------------------- /lib/foreigner/loader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/loader.rb -------------------------------------------------------------------------------- /lib/foreigner/migration/command_recorder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/migration/command_recorder.rb -------------------------------------------------------------------------------- /lib/foreigner/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/railtie.rb -------------------------------------------------------------------------------- /lib/foreigner/schema_dumper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/lib/foreigner/schema_dumper.rb -------------------------------------------------------------------------------- /test/foreigner/adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/adapter_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/abstract/schema_statements_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/abstract/schema_statements_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/abstract/table_definition_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/abstract/table_definition_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/mysql2_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/mysql2_adapter_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/mysql_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/mysql_adapter_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/postgresql_adapter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/postgresql_adapter_test.rb -------------------------------------------------------------------------------- /test/foreigner/connection_adapters/sql2003_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/connection_adapters/sql2003_test.rb -------------------------------------------------------------------------------- /test/foreigner/migration/command_recorder_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/migration/command_recorder_test.rb -------------------------------------------------------------------------------- /test/foreigner/schema_dumper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/foreigner/schema_dumper_test.rb -------------------------------------------------------------------------------- /test/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthuhiggins/foreigner/HEAD/test/helper.rb --------------------------------------------------------------------------------