class CreateSkProgressBar

Migration responsible for creating a table with sk_progress_bar

Public Class Methods

down() click to toggle source

Drop table

# File lib/generators/sk_progress_bar/migration/templates/migration.rb, line 17
def self.down
  drop_table :progress_bars
end
up() click to toggle source

Create table

# File lib/generators/sk_progress_bar/migration/templates/migration.rb, line 6
def self.up
  create_table :progress_bars do |t|
    t.string :message
    t.string :sk_process_id
    t.integer :percentage

    t.timestamps
  end

end