Skip to content
This repository was archived by the owner on May 13, 2022. It is now read-only.
This repository was archived by the owner on May 13, 2022. It is now read-only.

Incompatible with MigrationComments #170

@dmeranda

Description

@dmeranda

I'm not sure if this is a bug with schema_plus, or with migration_comments, but the two gems do not cooperate when rules from each are used on the same column. If this is a bug in the other gem I can re-post the issue there; but there seem to be more eyeballs here. See https://github.com/pinnymz/migration_comments

An example:

create_table "table_a" do |t|
  t.integer :something_id, :references => nil, :comment => 'Foo bar'
end

The :references option does not seem to be processed by schema_plus when there is also a :comment option, which causes schema_plus to attempt to create a default foreign key when it should not.

Using:

  • schema_plus 1.5.3 (latest)
  • migration_comments 0.3.2 (latest)
  • Rails ActiveRecord 3.2.16
  • MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions