Sha256: 374300b2f4cc7691be44d1f3ff5dc8f0feaf6dabbe7f24d2bd9510530ffff9d2
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
class ChangeFieldsForWeekDaysAndSpecialDates < ActiveRecord::Migration[4.2] def change remove_column :g5_updatable_week_days, :hour_description, :string if column_exists? :g5_updatable_week_days, :hour_description remove_column :g5_updatable_week_days, :twenty_four_hours, :boolean if column_exists? :g5_updatable_week_days, :twenty_four_hours remove_column :g5_updatable_special_dates, :hour_description, :string if column_exists? :g5_updatable_special_dates, :hour_description add_column :g5_updatable_week_days, :status, :string, default: 'none' unless column_exists? :g5_updatable_week_days, :status add_column :g5_updatable_special_dates, :status, :string, default: 'none' unless column_exists? :g5_updatable_special_dates, :status end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-1.0.2.pre.1 | db/migrate/20180213184549_change_fields_for_week_days_and_special_dates.rb |