Sha256: 9ccedfaf77c5d581ee9a05d94470957f1992977cb141d747dbe67a95c54aadf9
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %> def change create_table :autosuggest_suggestions do |t| t.string :query t.float :score t.datetime :updated_at<%= mysql? ? ", precision: 6" : "" %> end add_index :autosuggest_suggestions, :query, unique: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
autosuggest-0.2.0 | lib/generators/autosuggest/templates/migration.rb.tt |
autosuggest-0.1.3 | lib/generators/autosuggest/templates/migration.rb.tt |