{"id":22808366,"url":"https://github.com/sixarm/sixarm_ruby_active_record_migration_mock","last_synced_at":"2026-05-11T03:18:34.471Z","repository":{"id":919166,"uuid":"682396","full_name":"SixArm/sixarm_ruby_active_record_migration_mock","owner":"SixArm","description":"SixArm.com » Ruby » ActiveRecord migration mock object for testing Rails","archived":false,"fork":false,"pushed_at":"2023-09-15T19:27:36.000Z","size":351,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T00:26:22.185Z","etag":null,"topics":["activerecord","gem","migration","mock","rails","ruby"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-23T23:20:45.000Z","updated_at":"2023-05-22T14:10:38.000Z","dependencies_parsed_at":"2025-02-06T00:26:38.007Z","dependency_job_id":"50922932-8894-4372-bef3-e5e21d39177a","html_url":"https://github.com/SixArm/sixarm_ruby_active_record_migration_mock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_active_record_migration_mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_active_record_migration_mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_active_record_migration_mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_active_record_migration_mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_active_record_migration_mock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379366,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activerecord","gem","migration","mock","rails","ruby"],"created_at":"2024-12-12T11:09:30.253Z","updated_at":"2026-05-11T03:18:29.382Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com → Ruby → \u003cbr\u003e ActiveRecord migration mock object for testing Rails\n\n\u003c!--header-open--\u003e\n\n[![Gem Version](https://badge.fury.io/rb/sixarm_ruby_active_record_migration_mock.svg)](http://badge.fury.io/rb/sixarm_ruby_active_record_migration_mock)\n[![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_active_record_migration_mock.png)](https://travis-ci.org/SixArm/sixarm_ruby_active_record_migration_mock)\n[![Code Climate](https://api.codeclimate.com/v1/badges/c439010bee8fb1221527/maintainability)](https://codeclimate.com/github/SixArm/sixarm_ruby_active_record_migration_mock/maintainability)\n\n* Git: \u003chttps://github.com/SixArm/sixarm_ruby_active_record_migration_mock\u003e\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_active_record_migration_mock/doc\u003e\n* Gem: \u003chttps://rubygems.org/gems/sixarm_ruby_active_record_migration_mock\u003e\n* Contact: Joel Parker Henderson, \u003cjoel@sixarm.com\u003e\n* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).\n\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_active_record_migration_mock/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_active_record_migration_mock\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_active_record_migration_mock'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_active_record_migration_mock'\n\n\u003c!--install-shut--\u003e\n\n\n## Example Migration\n\n\n    class CreateFoosMigration \u003c ActiveRecordMigrationMock\n\n      def self.up\n        create_table 'foos', :force =\u003e true do |t|\n          t.column :abc,  :integer\n          t.column :def,  :string\n        end\n        add_index 'foos', 'abc'\n      end\n\n      def self.down\n        drop_table 'foos'\n      end\n\n    end\n\n\n## Example Usage\n\n    CreateFoosMigration.up\n\n    ActiveRecordMigration.has_table?('foos') =\u003e true\n    ActiveRecordMigration.has_table?('bars') =\u003e false\n\n    tables = ActiveRecordMigration.tables\n\n    table = ActiveRecordMigration.tables['foo']\n\n    table.has_column?('abc') =\u003e true\n    table.has_column?('xyz') =\u003e false\n\n    table.has_index?('abc') =\u003e true\n    table.has_index?('def') =\u003e false\n\n    columns = table.columns\n\n    column = table.columns['abc']\n    column.type =\u003e :integer\n\n    column = table.columns['def']\n    column.type =\u003e :string\n\n    indexes = table.indexes\n    index = table.indexes['abc']\n\n    index.table_name =\u003e 'foos'\n    index.column_name =\u003e 'abc'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_active_record_migration_mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_active_record_migration_mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_active_record_migration_mock/lists"}