Skip to content

Commit

Permalink
mysqlpls
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Jan 13, 2017
1 parent f3da6e6 commit 3150d66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions config/initializers/mysqlpls.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'active_record/connection_adapters/abstract_mysql_adapter'

module ActiveRecord
module ConnectionAdapters
class AbstractMysqlAdapter
NATIVE_DATABASE_TYPES[:string] = { :name => "varchar", :limit => 191 }
end
end
end
2 changes: 1 addition & 1 deletion db/migrate/20130917142610_create_people.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def change

t.timestamps
end
add_index :people, :username, unique: true, name: 'people_index'
add_index :people, :username, unique: true
end
end

0 comments on commit 3150d66

Please sign in to comment.