Sha256: 2b0f83258bf0da69c4a7368a94cbfaeda45f8ea1cd1c59ad2da67714dce9b082

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

class TelegramNotificationsMigration < ActiveRecord::Migration

  def self.up
    create_table :telegram_users do |t|
      t.integer :telegram_id
      t.string :first_name
      t.string :last_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

1 entries across 1 versions & 1 rubygems

Version Path
telegram_notifications-0.0.1 lib/generators/telegram_notifications/migration/templates/active_record/migration.rb