Class: AddPropertiesToPosts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddPropertiesToPosts
- Defined in:
- lib/ecrire/db/migrate/20140618321984_add_properties_to_posts.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 |
# File 'lib/ecrire/db/migrate/20140618321984_add_properties_to_posts.rb', line 2 def change execute 'CREATE EXTENSION IF NOT EXISTS hstore' add_column :posts, :properties, :hstore end |