ensl.org/db/migrate/20171109165433_create_custom_urls.rb
Ari Timonen 6bcfffa1ee Major update, bugfixes
- Use ruby 2.7.7 as it fixed startup issues
- Update gems
- Remove depr. from puma startup
- Make entry.sh dir-agnostic

Fix tests:
- Use apparition
- Update migrations to use new syntax
- Some other minor changes
2023-02-19 17:08:46 +02:00

12 lines
265 B
Ruby

class CreateCustomUrls < ActiveRecord::Migration[4.2]
def change
create_table :custom_urls do |t|
t.string :name
t.references :article
t.timestamps
end
add_index :custom_urls, :name
add_index :custom_urls, :article_id
end
end