Sha256: 8cbe502db205c638095d42a8ee3f7aa4cade80356e56043320349b262967dad9

Contents?: true

Size: 326 Bytes

Versions: 2

Compression:

Stored size: 326 Bytes

Contents

class TeleNotifyMigration < ActiveRecord::Migration

  def self.up
    create_table :telegram_users do |t|
      t.integer :telegram_id
      t.string :first_name
      t.string :username

      t.timestamps
    end

    add_index :telegram_users, :telegram_id
  end

  def self.down
    drop_table :telegram_users
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
TelegemBot-0.1.1 lib/generators/tele_notify/migration/templates/active_record/migration.rb
tele_notify-0.1.1 lib/generators/tele_notify/migration/templates/active_record/migration.rb