Sha256: 3f942fc874dd9b09a51b5f7e931e8dee1360463943fed25fa1c2c5578d8e1e32

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

class CreateHosts < ActiveRecord::Migration
  def table_name
    RestPack::Core::Service.config.prefix_db_table(:hosts)
  end

  def change
    create_table table_name do |t|
      t.string  :name, :null => false, :limit => 256
      t.integer :application_id, :null => false
      t.string  :session_secret, :null => false, :limit => 128
      t.json    :oauth_providers, :null => false

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restpack_core_service-0.0.5 db/migrate/20130808135549_create_hosts.rb