Sha256: 374aa09ed1ba94abc87b5e5130276fbe0fa10836f0250363a8b7f3d0831eacf4
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
Description: Creates a DB migration to generate the schema for a table which is used to store the entries of an eav_hash. Example: If you're not setting a custom table name, i.e., your model looks like this: class ModelName < ActiveRecord::Base eav_hash_for :hash_name end Then simply run this migration like so: rails generate eav_migration ModelName hash_name However, if you're a wizard and have specified a custom table name like this: class ModelName < ActiveRecord::Base eav_hash_for :hash_name, :table_name => :custom_table end Then run this generator like this: rails generate eav_migration ModelName hash_name custom_table Easy as pie!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eav_hashes-1.1.0 | lib/generators/eav_migration/USAGE |
eav_hashes-1.0.3 | lib/generators/eav_migration/USAGE |
eav_hashes-1.0.2 | lib/generators/eav_migration/USAGE |