Skip to content

Primary key required? #13

Closed
justinwiley opened this Issue Oct 4, 2012 · 2 comments

2 participants

@justinwiley

Generating a schema for a Rails app via:

bundle exec datanon generate_rdbms_dsl -a mysql2 -h localhost -d example_development -u root

Gives me:

    table 'schema_migrations' do
      primary_key '<No primary key found. Possible composite key. Please enter the value>'
      whitelist 'version'
    end

Since the table has no primary key, I removed the definition, which leads to failure later:

undefined method `length' for nil:NilClass 
 ["/Users/justin/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/data-anonymization-0.5.0/lib/utils/database.rb:34:in `block in create_table'"

Any way to get around this?

@sunitparekh
Owner
@sunitparekh
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.