Sha256: 7c844dbe0e8f81640d6af898e837301126446cbf39e8cc99e360e25285475d7b

Contents?: true

Size: 316 Bytes

Versions: 28

Compression:

Stored size: 316 Bytes

Contents

class CreateTestTables < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :issue_id
      t.integer :position
    end

    create_table :roles do |t|
      t.string :name
      t.integer :user_id
    end
  end

  def self.down
    drop_table :users
    drop_table :roles
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
sessionm-cassandra_object-4.0.11 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.10 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.9 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.8 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.7 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.6 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.5 spec/support/db/migrate/001_create_test_tables.rb
sessionm-cassandra_object-4.0.4 spec/support/db/migrate/001_create_test_tables.rb