Sha256: d26a7517ea35f1732a4118f228d5adff58fbbff23a205746f20cb6b09eb761cc
Contents?: true
Size: 491 Bytes
Versions: 13
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true class AddStateToTimelineObjects < ActiveRecord::Migration[4.2] def self.up add_column :comments, :state, :string, limit: 16, null: false, default: "Expanded" add_column :emails, :state, :string, limit: 16, null: false, default: "Expanded" execute("UPDATE comments SET state='Expanded'") execute("UPDATE emails SET state='Expanded'") end def self.down remove_column :comments, :state remove_column :emails, :state end end
Version data entries
13 entries across 13 versions & 1 rubygems