├── .github ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── .jrubyrc ├── .rspec ├── .rubocop.yml ├── .yardopts ├── CHANGELOG.md ├── Gemfile ├── LICENSE.md ├── README.md ├── Rakefile ├── hanami-model.gemspec ├── lib ├── hanami-model.rb └── hanami │ ├── entity.rb │ ├── entity │ └── schema.rb │ ├── model.rb │ ├── model │ ├── association.rb │ ├── associations │ │ ├── belongs_to.rb │ │ ├── dsl.rb │ │ ├── has_many.rb │ │ ├── has_one.rb │ │ └── many_to_many.rb │ ├── configuration.rb │ ├── configurator.rb │ ├── entity_name.rb │ ├── error.rb │ ├── mapped_relation.rb │ ├── mapping.rb │ ├── migration.rb │ ├── migrator.rb │ ├── migrator │ │ ├── adapter.rb │ │ ├── connection.rb │ │ ├── logger.rb │ │ ├── mysql_adapter.rb │ │ ├── postgres_adapter.rb │ │ └── sqlite_adapter.rb │ ├── plugins.rb │ ├── plugins │ │ ├── mapping.rb │ │ ├── schema.rb │ │ └── timestamps.rb │ ├── relation_name.rb │ ├── sql.rb │ ├── sql │ │ ├── console.rb │ │ ├── consoles │ │ │ ├── abstract.rb │ │ │ ├── mysql.rb │ │ │ ├── postgresql.rb │ │ │ └── sqlite.rb │ │ ├── entity │ │ │ └── schema.rb │ │ ├── types.rb │ │ └── types │ │ │ └── schema │ │ │ └── coercions.rb │ ├── types.rb │ └── version.rb │ └── repository.rb ├── script └── ci └── spec ├── integration └── hanami │ └── model │ ├── associations │ ├── belongs_to_spec.rb │ ├── has_many_spec.rb │ ├── has_one_spec.rb │ ├── many_to_many_spec.rb │ └── relation_alias_spec.rb │ ├── migration │ ├── mysql.rb │ ├── postgresql.rb │ └── sqlite.rb │ ├── migration_spec.rb │ └── repository │ ├── base_spec.rb │ ├── command_spec.rb │ └── legacy_spec.rb ├── spec_helper.rb ├── support ├── database.rb ├── database │ └── strategies │ │ ├── abstract.rb │ │ ├── mysql.rb │ │ ├── postgresql.rb │ │ ├── sql.rb │ │ └── sqlite.rb ├── fixtures.rb ├── fixtures │ ├── database_migrations │ │ ├── 20150612081248_column_types.rb │ │ ├── 20150612084656_default_values.rb │ │ ├── 20150612093458_null_constraints.rb │ │ ├── 20150612093810_column_indexes.rb │ │ ├── 20150612094740_primary_keys.rb │ │ ├── 20150612115204_foreign_keys.rb │ │ ├── 20150612122233_table_constraints.rb │ │ ├── 20150612124205_table_alterations.rb │ │ ├── 20160830094800_create_users.rb │ │ ├── 20160830094851_create_authors.rb │ │ ├── 20160830094941_create_books.rb │ │ ├── 20160830095033_create_t_operator.rb │ │ ├── 20160905125728_create_source_files.rb │ │ ├── 20160909150704_create_avatars.rb │ │ ├── 20161104143844_create_warehouses.rb │ │ ├── 20161114094644_create_products.rb │ │ ├── 20170103142428_create_colors.rb │ │ ├── 20170124081339_create_labels.rb │ │ ├── 20170517115243_create_tokens.rb │ │ ├── 20170519172332_create_categories.rb │ │ └── 20171002201227_create_posts_and_comments.rb │ ├── empty_migrations │ │ └── .gitkeep │ └── migrations │ │ ├── 20160831073534_create_reviews.rb │ │ └── 20160831090612_add_rating_to_reviews.rb ├── platform.rb ├── platform │ ├── ci.rb │ ├── db.rb │ ├── engine.rb │ ├── matcher.rb │ └── os.rb ├── rspec.rb └── test_io.rb └── unit └── hanami ├── entity ├── automatic_schema_spec.rb ├── manual_schema │ ├── base_spec.rb │ ├── strict_spec.rb │ └── types_spec.rb ├── schema │ ├── definition_spec.rb │ └── schemaless_spec.rb ├── schema_spec.rb └── schemaless_spec.rb ├── entity_spec.rb └── model ├── check_constraint_validation_error_spec.rb ├── configuration_spec.rb ├── constraint_violation_error_spec.rb ├── disconnect_spec.rb ├── error_spec.rb ├── foreign_key_constraint_violation_error_spec.rb ├── load_spec.rb ├── mapped_relation_spec.rb ├── migrator ├── adapter_spec.rb ├── connection_spec.rb ├── mysql.rb ├── postgresql.rb └── sqlite.rb ├── migrator_spec.rb ├── not_null_constraint_violation_error_spec.rb ├── sql ├── console │ ├── mysql.rb │ ├── postgresql.rb │ └── sqlite.rb ├── console_spec.rb ├── entity │ └── schema │ │ ├── automatic_spec.rb │ │ └── mapping_spec.rb └── schema │ ├── array_spec.rb │ ├── bool_spec.rb │ ├── date_spec.rb │ ├── date_time_spec.rb │ ├── decimal_spec.rb │ ├── float_spec.rb │ ├── hash_spec.rb │ ├── int_spec.rb │ ├── string_spec.rb │ └── time_spec.rb ├── sql_spec.rb ├── unique_constraint_violation_error_spec.rb └── version_spec.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: hanami 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/.gitignore -------------------------------------------------------------------------------- /.jrubyrc: -------------------------------------------------------------------------------- 1 | debug.fullTrace=true 2 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | --protected 2 | --private 3 | - 4 | LICENSE.md 5 | lib/**/*.rb 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/Rakefile -------------------------------------------------------------------------------- /hanami-model.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/hanami-model.gemspec -------------------------------------------------------------------------------- /lib/hanami-model.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | require "hanami/model" 4 | -------------------------------------------------------------------------------- /lib/hanami/entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/entity.rb -------------------------------------------------------------------------------- /lib/hanami/entity/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/entity/schema.rb -------------------------------------------------------------------------------- /lib/hanami/model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model.rb -------------------------------------------------------------------------------- /lib/hanami/model/association.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/association.rb -------------------------------------------------------------------------------- /lib/hanami/model/associations/belongs_to.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/associations/belongs_to.rb -------------------------------------------------------------------------------- /lib/hanami/model/associations/dsl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/associations/dsl.rb -------------------------------------------------------------------------------- /lib/hanami/model/associations/has_many.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/associations/has_many.rb -------------------------------------------------------------------------------- /lib/hanami/model/associations/has_one.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/associations/has_one.rb -------------------------------------------------------------------------------- /lib/hanami/model/associations/many_to_many.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/associations/many_to_many.rb -------------------------------------------------------------------------------- /lib/hanami/model/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/configuration.rb -------------------------------------------------------------------------------- /lib/hanami/model/configurator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/configurator.rb -------------------------------------------------------------------------------- /lib/hanami/model/entity_name.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/entity_name.rb -------------------------------------------------------------------------------- /lib/hanami/model/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/error.rb -------------------------------------------------------------------------------- /lib/hanami/model/mapped_relation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/mapped_relation.rb -------------------------------------------------------------------------------- /lib/hanami/model/mapping.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/mapping.rb -------------------------------------------------------------------------------- /lib/hanami/model/migration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migration.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/adapter.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/connection.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/logger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/logger.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/mysql_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/mysql_adapter.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/postgres_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/postgres_adapter.rb -------------------------------------------------------------------------------- /lib/hanami/model/migrator/sqlite_adapter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/migrator/sqlite_adapter.rb -------------------------------------------------------------------------------- /lib/hanami/model/plugins.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/plugins.rb -------------------------------------------------------------------------------- /lib/hanami/model/plugins/mapping.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/plugins/mapping.rb -------------------------------------------------------------------------------- /lib/hanami/model/plugins/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/plugins/schema.rb -------------------------------------------------------------------------------- /lib/hanami/model/plugins/timestamps.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/plugins/timestamps.rb -------------------------------------------------------------------------------- /lib/hanami/model/relation_name.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/relation_name.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/console.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/console.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/consoles/abstract.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/consoles/abstract.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/consoles/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/consoles/mysql.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/consoles/postgresql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/consoles/postgresql.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/consoles/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/consoles/sqlite.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/entity/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/entity/schema.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/types.rb -------------------------------------------------------------------------------- /lib/hanami/model/sql/types/schema/coercions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/sql/types/schema/coercions.rb -------------------------------------------------------------------------------- /lib/hanami/model/types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/types.rb -------------------------------------------------------------------------------- /lib/hanami/model/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/model/version.rb -------------------------------------------------------------------------------- /lib/hanami/repository.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/lib/hanami/repository.rb -------------------------------------------------------------------------------- /script/ci: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/script/ci -------------------------------------------------------------------------------- /spec/integration/hanami/model/associations/belongs_to_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/associations/belongs_to_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/associations/has_many_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/associations/has_many_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/associations/has_one_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/associations/has_one_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/associations/many_to_many_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/associations/many_to_many_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/associations/relation_alias_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/associations/relation_alias_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/migration/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/migration/mysql.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/migration/postgresql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/migration/postgresql.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/migration/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/migration/sqlite.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/migration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/migration_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/repository/base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/repository/base_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/repository/command_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/repository/command_spec.rb -------------------------------------------------------------------------------- /spec/integration/hanami/model/repository/legacy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/integration/hanami/model/repository/legacy_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/database.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database.rb -------------------------------------------------------------------------------- /spec/support/database/strategies/abstract.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database/strategies/abstract.rb -------------------------------------------------------------------------------- /spec/support/database/strategies/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database/strategies/mysql.rb -------------------------------------------------------------------------------- /spec/support/database/strategies/postgresql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database/strategies/postgresql.rb -------------------------------------------------------------------------------- /spec/support/database/strategies/sql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database/strategies/sql.rb -------------------------------------------------------------------------------- /spec/support/database/strategies/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/database/strategies/sqlite.rb -------------------------------------------------------------------------------- /spec/support/fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612081248_column_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612081248_column_types.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612084656_default_values.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612084656_default_values.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612093458_null_constraints.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612093458_null_constraints.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612093810_column_indexes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612093810_column_indexes.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612094740_primary_keys.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612094740_primary_keys.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612115204_foreign_keys.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612115204_foreign_keys.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612122233_table_constraints.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612122233_table_constraints.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20150612124205_table_alterations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20150612124205_table_alterations.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160830094800_create_users.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160830094800_create_users.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160830094851_create_authors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160830094851_create_authors.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160830094941_create_books.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160830094941_create_books.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160830095033_create_t_operator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160830095033_create_t_operator.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160905125728_create_source_files.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160905125728_create_source_files.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20160909150704_create_avatars.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20160909150704_create_avatars.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20161104143844_create_warehouses.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20161104143844_create_warehouses.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20161114094644_create_products.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20161114094644_create_products.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20170103142428_create_colors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20170103142428_create_colors.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20170124081339_create_labels.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20170124081339_create_labels.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20170517115243_create_tokens.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20170517115243_create_tokens.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20170519172332_create_categories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20170519172332_create_categories.rb -------------------------------------------------------------------------------- /spec/support/fixtures/database_migrations/20171002201227_create_posts_and_comments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/database_migrations/20171002201227_create_posts_and_comments.rb -------------------------------------------------------------------------------- /spec/support/fixtures/empty_migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/support/fixtures/migrations/20160831073534_create_reviews.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/migrations/20160831073534_create_reviews.rb -------------------------------------------------------------------------------- /spec/support/fixtures/migrations/20160831090612_add_rating_to_reviews.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/fixtures/migrations/20160831090612_add_rating_to_reviews.rb -------------------------------------------------------------------------------- /spec/support/platform.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform.rb -------------------------------------------------------------------------------- /spec/support/platform/ci.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform/ci.rb -------------------------------------------------------------------------------- /spec/support/platform/db.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform/db.rb -------------------------------------------------------------------------------- /spec/support/platform/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform/engine.rb -------------------------------------------------------------------------------- /spec/support/platform/matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform/matcher.rb -------------------------------------------------------------------------------- /spec/support/platform/os.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/platform/os.rb -------------------------------------------------------------------------------- /spec/support/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/rspec.rb -------------------------------------------------------------------------------- /spec/support/test_io.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/support/test_io.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/automatic_schema_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/automatic_schema_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/manual_schema/base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/manual_schema/base_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/manual_schema/strict_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/manual_schema/strict_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/manual_schema/types_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/manual_schema/types_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/schema/definition_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/schema/definition_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/schema/schemaless_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/schema/schemaless_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/schema_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/schema_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity/schemaless_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity/schemaless_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/entity_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/entity_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/check_constraint_validation_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/check_constraint_validation_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/configuration_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/constraint_violation_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/constraint_violation_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/disconnect_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/disconnect_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/foreign_key_constraint_violation_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/foreign_key_constraint_violation_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/load_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/load_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/mapped_relation_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/mapped_relation_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator/adapter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator/adapter_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator/connection_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator/connection_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator/mysql.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator/postgresql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator/postgresql.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator/sqlite.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/migrator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/migrator_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/not_null_constraint_violation_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/not_null_constraint_violation_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/console/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/console/mysql.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/console/postgresql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/console/postgresql.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/console/sqlite.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/console/sqlite.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/console_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/console_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/entity/schema/automatic_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/entity/schema/automatic_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/entity/schema/mapping_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/entity/schema/mapping_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/array_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/array_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/bool_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/bool_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/date_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/date_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/date_time_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/date_time_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/decimal_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/decimal_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/float_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/float_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/hash_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/hash_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/int_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/int_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/string_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/string_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql/schema/time_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql/schema/time_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/sql_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/sql_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/unique_constraint_violation_error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/unique_constraint_violation_error_spec.rb -------------------------------------------------------------------------------- /spec/unit/hanami/model/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanami/model/HEAD/spec/unit/hanami/model/version_spec.rb --------------------------------------------------------------------------------