Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'active_record/connection_adapters/mysql2_adapter'
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::NATIVE_DATABASE_TYPES[:primary_key] =
- "BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY".freeze
- t.column :product_id, 'BIGINT UNSIGNED'
Add Comment
Please, Sign In to add comment