Sha256: 4d2605f3df0736a79684ad6f7e54005bce3c0a965763cba661d9d8e2ce85f4d0
Contents?: true
Size: 682 Bytes
Versions: 6
Compression:
Stored size: 682 Bytes
Contents
# Migration for the Roomer.tenants_table class RoomerCreate<%= Roomer.tenants_table.to_s.camelize %> < ActiveRecord::Migration def self.up create_table(:<%= Roomer.tenants_table %>) do |t| t.string :<%= Roomer.tenant_url_identifier_column %> t.string :<%= Roomer.tenant_schema_name_column %> # Add additional columns here # t.string :name t.timestamps end add_index :<%= Roomer.tenants_table %>, :<%= Roomer.tenant_url_identifier_column %>, :unique => true add_index :<%= Roomer.tenants_table %>, :<%= Roomer.tenant_schema_name_column %>, :unique => true end def self.down drop_table :<%= Roomer.tenants_table %> end end
Version data entries
6 entries across 6 versions & 1 rubygems