:bowtie: |
😄 :smile: |
:simple_smile: :simple_smile: |
😆 :laughing: |
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StringValidator | |
ALLOWED_PARANTHESIS = { | |
')' => '(', | |
'}' => '{', | |
']' => '[' | |
}.freeze | |
def initialize(value = '') | |
@text = value | |
end |
If the migration name is of the form "AddXXXToYYY" or "RemoveXXXFromYYY" and is followed by a list of column names and types then a migration containing the appropriate add_column and remove_column statements will be created.
$ rails g migration CreateUsers email:string:index
db/migrate/20161201203703_create_users.rb
class CreateUsers < ActiveRecord::Migration
NewerOlder