Sha256: 4ea70a9d204e211f6aaf73f8ab2ad71eb4244fce7723be7f6c329fb4a868eeae

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

class CreateUsers < Cassanity::Migration
  def up
    create_column_family :users, {
      primary_key: :id,
      columns: {
        id: :timeuuid,
        name: :text,
        age: :int,
        updated_at: :timestamp,
      },
    }
  end

  def down
    drop_column_family :users
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cassanity-0.6.0 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.6.0.beta5 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.6.0.beta4 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.6.0.beta3 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.6.0.beta2 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.6.0.beta1 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.5.1 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb
cassanity-0.5.0 spec/integration/cassanity/fixtures/migrations/20130224135000_create_users.rb