Sha256: 0a931b448041c155a214bbdb7844fced338258d5f9c173668085628e880d5e9b
Contents?: true
Size: 635 Bytes
Versions: 18
Compression:
Stored size: 635 Bytes
Contents
# encoding: UTF-8 Sequel.migration do up do alter_table(:content) do add_column :hidden, :boolean, :default => false # keeps track of the id of the parent item that is giving us our invisible status add_column :hidden_origin, :integer # a 'materialized path' for the complete content path add_column :content_path, String add_index :hidden add_index :content_path end end down do alter_table(:content) do drop_index :hidden drop_index :content_path drop_column :hidden drop_column :hidden_origin drop_column :content_path end end end
Version data entries
18 entries across 18 versions & 1 rubygems