class ActiveRecord::ConnectionAdapters::Table
Public Instance Methods
hstore(*args)
click to toggle source
Adds hstore type for migrations. So you can add columns to a table like:
change_table :people do |t| ... t.hstore :info ... end
# File lib/activerecord-postgres-hstore/activerecord.rb, line 176 def hstore(*args) options = args.extract_options! column_names = args column_names.each { |name| column(name, 'hstore', options) } end