Sha256: 66cda9715f6231a1b94536bbcf0a8c0d4e353ebd57eff8f1ee1e02b0441063d8
Contents?: true
Size: 948 Bytes
Versions: 3
Compression:
Stored size: 948 Bytes
Contents
# # ActiveRecord migration for creating the aux_codes table # class AuxCodes class CreateAuxCodes < ActiveRecord::Migration def self.up create_table :aux_codes, :comment => 'Auxilary Codes' do |t| t.integer :aux_code_id, :comment => 'ID of parent aux code (Category)', :null => false t.string :name, :comment => 'Name of Category code (or child code)', :null => false # disabled for now, as they're not needed - no specs using this functionality # # %w( integer decimal string text boolean datetime ).each do |field_type| # t.column field_type.to_sym, "#{field_type}_field" # end # this should be added conditionally, based on whether or not meta attributes are desired t.text :meta, :comment => 'Serialized meta_attributes' t.timestamps end end def self.down drop_table :aux_codes end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
remi-aux_codes-1.0.5 | lib/aux_codes/migration.rb |
remi-aux_codes-1.0.6 | lib/aux_codes/migration.rb |
aux_codes-1.0.6 | lib/aux_codes/migration.rb |