Sha256: 4bb07f75a9cfdf5819c42861912376de3a6f5ab708de0e1efe2262771baf59eb
Contents?: true
Size: 531 Bytes
Versions: 33
Compression:
Stored size: 531 Bytes
Contents
class AddDynAttributes < ActiveRecord::Migration def self.up create_table('dyn_attributes', :options => Zena::Db.table_options) do |t| t.column 'owner_id', :integer t.column 'owner_table', :string t.column 'key', :string t.column 'value', :text end add_index 'dyn_attributes', 'owner_id' add_index 'dyn_attributes', 'owner_table' end def self.down remove_index 'dyn_attributes', 'owner_id' remove_index 'dyn_attributes', 'owner_table' drop_table 'dyn_attributes' end end
Version data entries
33 entries across 33 versions & 1 rubygems